@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
@@ -5,10 +5,10 @@ import { Directive } from '@angular/core';
5
5
  * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`
6
6
  */
7
7
  class TuiItem {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiItem, isStandalone: true, selector: "[tuiItem]", ngImport: i0 }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
9
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiItem, isStandalone: true, selector: "[tuiItem]", ngImport: i0 }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiItem, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiItem, decorators: [{
12
12
  type: Directive,
13
13
  args: [{
14
14
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-item.mjs","sources":["../../../projects/cdk/directives/item/item.directive.ts","../../../projects/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`\n */\n@Directive({\n standalone: true,\n selector: '[tuiItem]',\n})\nexport class TuiItem {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;AACH,MAIa,OAAO,CAAA;+GAAP,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAJnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-item.mjs","sources":["../../../projects/cdk/directives/item/item.directive.ts","../../../projects/cdk/directives/item/taiga-ui-cdk-directives-item.ts"],"sourcesContent":["import {Directive} from '@angular/core';\n\n/**\n * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`\n */\n@Directive({\n standalone: true,\n selector: '[tuiItem]',\n})\nexport class TuiItem {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAEA;;AAEG;MAKU,OAAO,CAAA;+GAAP,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,WAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAJnB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACxB,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, Directive, Input } from '@angular/core';
2
+ import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
3
3
 
4
4
  /**
5
5
  * @internal
@@ -17,8 +17,7 @@ class TuiLetContext {
17
17
  }
18
18
 
19
19
  /**
20
- * Works like *ngIf but does not have a condition — use it to declare
21
- * the result of pipes calculation (i.e. async pipe)
20
+ * @deprecated use @let instead
22
21
  */
23
22
  class TuiLet {
24
23
  constructor() {
@@ -33,16 +32,16 @@ class TuiLet {
33
32
  static ngTemplateContextGuard(_dir, _ctx) {
34
33
  return true;
35
34
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
37
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
35
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
36
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
38
37
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiLet, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, decorators: [{
40
39
  type: Directive,
41
40
  args: [{
42
41
  standalone: true,
43
42
  selector: '[tuiLet]',
44
43
  }]
45
- }], ctorParameters: function () { return []; }, propDecorators: { tuiLet: [{
44
+ }], ctorParameters: () => [], propDecorators: { tuiLet: [{
46
45
  type: Input
47
46
  }] } });
48
47
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * Works like *ngIf but does not have a condition — use it to declare\n * the result of pipes calculation (i.e. async pipe)\n */\n@Directive({\n standalone: true,\n selector: '[tuiLet]',\n})\nexport class TuiLet<T> {\n @Input()\n public tuiLet!: T;\n\n constructor() {\n inject(ViewContainerRef).createEmbeddedView(\n inject(TemplateRef<TuiLetContext<T>>),\n new TuiLetContext<T>(this),\n );\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n public static ngTemplateContextGuard<T>(\n _dir: TuiLet<T>,\n _ctx: unknown,\n ): _ctx is TuiLetContext<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MACU,aAAa,CAAA;AACtB,IAAA,WAAA,CAA6B,yBAAoC,EAAA;QAApC,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB,CAAW;KAAI;AAErE,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;AAED,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC;KAChD;AACJ;;ACbD;;;AAGG;AACH,MAIa,MAAM,CAAA;AAIf,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACvC,MAAM,EAAC,WAA6B,EAAC,EACrC,IAAI,aAAa,CAAI,IAAI,CAAC,CAC7B,CAAC;KACL;AAED;;;;;AAKG;AACI,IAAA,OAAO,sBAAsB,CAChC,IAAe,EACf,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI,CAAC;KACf;+GAtBQ,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAJlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA,CAAA;0EAGU,MAAM,EAAA,CAAA;sBADZ,KAAK;;;ACbV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * @deprecated use @let instead\n */\n@Directive({\n standalone: true,\n selector: '[tuiLet]',\n})\nexport class TuiLet<T> {\n @Input()\n public tuiLet!: T;\n\n constructor() {\n inject(ViewContainerRef).createEmbeddedView(\n inject(TemplateRef<TuiLetContext<T>>),\n new TuiLetContext<T>(this),\n );\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n public static ngTemplateContextGuard<T>(\n _dir: TuiLet<T>,\n _ctx: unknown,\n ): _ctx is TuiLetContext<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MACU,aAAa,CAAA;AACtB,IAAA,WAAA,CAA6B,yBAAoC,EAAA;QAApC,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB;;AAEtD,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAGhD,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAEnD;;ACbD;;AAEG;MAKU,MAAM,CAAA;AAIf,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACvC,MAAM,EAAC,WAA6B,EAAC,EACrC,IAAI,aAAa,CAAI,IAAI,CAAC,CAC7B;;AAGL;;;;;AAKG;AACI,IAAA,OAAO,sBAAsB,CAChC,IAAe,EACf,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;;+GArBN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAJlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA;wDAGU,MAAM,EAAA,CAAA;sBADZ;;;ACZL;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { EventEmitter, Directive, Input, Output } from '@angular/core';
2
+ import { EventEmitter, Input, Output, Directive } from '@angular/core';
3
3
  import { tuiInjectElement } from '@taiga-ui/cdk/utils';
4
4
 
5
5
  class TuiMedia {
@@ -49,10 +49,10 @@ class TuiMedia {
49
49
  this.playbackRate = playbackRate;
50
50
  this.el.playbackRate = this.playbackRate;
51
51
  }
52
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
53
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiMedia, isStandalone: true, selector: "video[tuiMedia], audio[tuiMedia]", inputs: { volume: "volume", playbackRateSetter: ["playbackRate", "playbackRateSetter"], currentTime: "currentTime", paused: "paused" }, outputs: { currentTimeChange: "currentTimeChange", pausedChange: "pausedChange", volumeChange: "volumeChange" }, host: { listeners: { "durationchange": "0", "ended": "onPausedChange(true)", "pause": "onPausedChange(true)", "play": "onPausedChange(false)", "volumechange": "onVolumeChange()", "timeupdate": "onCurrentTimeChange()", "seeking": "onCurrentTimeChange()", "seeked": "onCurrentTimeChange()" }, properties: { "volume": "volume" } }, exportAs: ["tuiMedia"], ngImport: i0 }); }
52
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMedia, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
53
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiMedia, isStandalone: true, selector: "video[tuiMedia], audio[tuiMedia]", inputs: { volume: "volume", playbackRateSetter: ["playbackRate", "playbackRateSetter"], currentTime: "currentTime", paused: "paused" }, outputs: { currentTimeChange: "currentTimeChange", pausedChange: "pausedChange", volumeChange: "volumeChange" }, host: { listeners: { "durationchange": "0", "ended": "onPausedChange(true)", "pause": "onPausedChange(true)", "play": "onPausedChange(false)", "volumechange": "onVolumeChange()", "timeupdate": "onCurrentTimeChange()", "seeking": "onCurrentTimeChange()", "seeked": "onCurrentTimeChange()" }, properties: { "volume": "volume" } }, exportAs: ["tuiMedia"], ngImport: i0 }); }
54
54
  }
55
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiMedia, decorators: [{
55
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiMedia, decorators: [{
56
56
  type: Directive,
57
57
  args: [{
58
58
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-media.mjs","sources":["../../../projects/cdk/directives/media/media.directive.ts","../../../projects/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {Directive, EventEmitter, Input, Output} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n host: {\n '[volume]': 'volume',\n '(durationchange)': '0',\n '(ended)': 'onPausedChange(true)',\n '(pause)': 'onPausedChange(true)',\n '(play)': 'onPausedChange(false)',\n '(volumechange)': 'onVolumeChange()',\n '(timeupdate)': 'onCurrentTimeChange()',\n '(seeking)': 'onCurrentTimeChange()',\n '(seeked)': 'onCurrentTimeChange()',\n },\n})\nexport class TuiMedia {\n private readonly el = tuiInjectElement<HTMLMediaElement>();\n\n private playbackRate = 1;\n\n @Input()\n public volume = 1;\n\n @Output()\n public readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n public readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n public readonly volumeChange = new EventEmitter<number>();\n\n @Input('playbackRate')\n public set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n public set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.el.currentTime = currentTime;\n }\n }\n\n @Input()\n public set paused(paused: boolean) {\n if (paused) {\n this.el.pause?.();\n } else {\n void this.el.play?.();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n public get currentTime(): number {\n return this.el.currentTime ?? 0;\n }\n\n public get paused(): boolean {\n return this.el.paused;\n }\n\n protected onPausedChange(paused: boolean): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n protected onVolumeChange(): void {\n this.volume = this.el.volume;\n this.volumeChange.emit(this.volume);\n }\n\n protected onCurrentTimeChange(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n private updatePlaybackRate(playbackRate: number): void {\n this.playbackRate = playbackRate;\n this.el.playbackRate = this.playbackRate;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAgBa,QAAQ,CAAA;AAhBrB,IAAA,WAAA,GAAA;QAiBqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB,CAAC;QAEnD,IAAY,CAAA,YAAA,GAAG,CAAC,CAAC;QAGlB,IAAM,CAAA,MAAA,GAAG,CAAC,CAAC;AAGF,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,YAAY,EAAU,CAAC;AAG/C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAW,CAAC;AAG3C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAU,CAAC;AAkD7D,KAAA;IAhDG,IACW,kBAAkB,CAAC,YAAoB,EAAA;AAC9C,QAAA,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;KACzC;IAED,IACW,WAAW,CAAC,WAAmB,EAAA;AACtC,QAAA,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;AACjD,YAAA,IAAI,CAAC,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;AACrC,SAAA;KACJ;IAED,IACW,MAAM,CAAC,MAAe,EAAA;AAC7B,QAAA,IAAI,MAAM,EAAE;AAC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AAA;sBAD3B,MAAM;gBAIS,YAAY,EAAA,CAAA;sBAD3B,MAAM;gBAII,kBAAkB,EAAA,CAAA;sBAD5B,KAAK;uBAAC,cAAc,CAAA;gBAMV,WAAW,EAAA,CAAA;sBADrB,KAAK;gBAQK,MAAM,EAAA,CAAA;sBADhB,KAAK;;;AChDV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-media.mjs","sources":["../../../projects/cdk/directives/media/media.directive.ts","../../../projects/cdk/directives/media/taiga-ui-cdk-directives-media.ts"],"sourcesContent":["import {Directive, EventEmitter, Input, Output} from '@angular/core';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\n\n@Directive({\n standalone: true,\n selector: 'video[tuiMedia], audio[tuiMedia]',\n exportAs: 'tuiMedia',\n host: {\n '[volume]': 'volume',\n '(durationchange)': '0',\n '(ended)': 'onPausedChange(true)',\n '(pause)': 'onPausedChange(true)',\n '(play)': 'onPausedChange(false)',\n '(volumechange)': 'onVolumeChange()',\n '(timeupdate)': 'onCurrentTimeChange()',\n '(seeking)': 'onCurrentTimeChange()',\n '(seeked)': 'onCurrentTimeChange()',\n },\n})\nexport class TuiMedia {\n private readonly el = tuiInjectElement<HTMLMediaElement>();\n\n private playbackRate = 1;\n\n @Input()\n public volume = 1;\n\n @Output()\n public readonly currentTimeChange = new EventEmitter<number>();\n\n @Output()\n public readonly pausedChange = new EventEmitter<boolean>();\n\n @Output()\n public readonly volumeChange = new EventEmitter<number>();\n\n @Input('playbackRate')\n public set playbackRateSetter(playbackRate: number) {\n this.updatePlaybackRate(playbackRate);\n }\n\n @Input()\n public set currentTime(currentTime: number) {\n if (Math.abs(currentTime - this.currentTime) > 0.05) {\n this.el.currentTime = currentTime;\n }\n }\n\n @Input()\n public set paused(paused: boolean) {\n if (paused) {\n this.el.pause?.();\n } else {\n void this.el.play?.();\n this.updatePlaybackRate(this.playbackRate);\n }\n }\n\n public get currentTime(): number {\n return this.el.currentTime ?? 0;\n }\n\n public get paused(): boolean {\n return this.el.paused;\n }\n\n protected onPausedChange(paused: boolean): void {\n this.pausedChange.emit(paused);\n this.updatePlaybackRate(this.playbackRate);\n }\n\n protected onVolumeChange(): void {\n this.volume = this.el.volume;\n this.volumeChange.emit(this.volume);\n }\n\n protected onCurrentTimeChange(): void {\n this.currentTimeChange.emit(this.currentTime);\n }\n\n private updatePlaybackRate(playbackRate: number): void {\n this.playbackRate = playbackRate;\n this.el.playbackRate = this.playbackRate;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAmBa,QAAQ,CAAA;AAhBrB,IAAA,WAAA,GAAA;QAiBqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB;QAElD,IAAY,CAAA,YAAA,GAAG,CAAC;QAGjB,IAAM,CAAA,MAAA,GAAG,CAAC;AAGD,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,YAAY,EAAU;AAG9C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAW;AAG1C,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAU;AAkD5D;IAhDG,IACW,kBAAkB,CAAC,YAAoB,EAAA;AAC9C,QAAA,IAAI,CAAC,kBAAkB,CAAC,YAAY,CAAC;;IAGzC,IACW,WAAW,CAAC,WAAmB,EAAA;AACtC,QAAA,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE;AACjD,YAAA,IAAI,CAAC,EAAE,CAAC,WAAW,GAAG,WAAW;;;IAIzC,IACW,MAAM,CAAC,MAAe,EAAA;QAC7B,IAAI,MAAM,EAAE;AACR,YAAA,IAAI,CAAC,EAAE,CAAC,KAAK,IAAI;;aACd;AACH,YAAA,KAAK,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI;AACrB,YAAA,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,YAAY,CAAC;;;AAIlD,IAAA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A,EAAA,MAAA,EAAA,uBAAA,EAAA,cAAA,EAAA,kBAAA,EAAA,YAAA,EAAA,uBAAA,EAAA,SAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,EAAA,UAAA,EAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,UAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAR,QAAQ,EAAA,UAAA,EAAA,CAAA;kBAhBpB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,kCAAkC;AAC5C,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,IAAI,EAAE;AACF,wBAAA,UAAU,EAAE,QAAQ;AACpB,wBAAA,kBAAkB,EAAE,GAAG;AACvB,wBAAA,SAAS,EAAE,sBAAsB;AACjC,wBAAA,SAAS,EAAE,sBAAsB;AACjC,wBAAA,QAAQ,EAAE,uBAAuB;AACjC,wBAAA,gBAAgB,EAAE,kBAAkB;AACpC,wBAAA,cAAc,EAAE,uBAAuB;AACvC,wBAAA,WAAW,EAAE,uBAAuB;AACpC,wBAAA,UAAU,EAAE,uBAAuB;AACtC,qBAAA;AACJ,iBAAA;8BAOU,MAAM,EAAA,CAAA;sBADZ;gBAIe,iBAAiB,EAAA,CAAA;sBADhC;gBAIe,YAAY,EAAA,CAAA;sBAD3B;gBAIe,YAAY,EAAA,CAAA;sBAD3B;gBAIU,kBAAkB,EAAA,CAAA;sBAD5B,KAAK;uBAAC,cAAc;gBAMV,WAAW,EAAA,CAAA;sBADrB;gBAQU,MAAM,EAAA,CAAA;sBADhB;;;AChDL;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, Input } from '@angular/core';
2
+ import { Input, Directive } from '@angular/core';
3
3
  import { NG_VALIDATORS } from '@angular/forms';
4
4
  import { tuiZonefree, tuiTakeUntilDestroyed } from '@taiga-ui/cdk/observables';
5
5
  import { tuiInjectElement, tuiProvide } from '@taiga-ui/cdk/utils';
@@ -24,10 +24,10 @@ class TuiNativeValidator {
24
24
  this.el.closest('tui-textfield')?.classList.toggle('tui-invalid', invalid);
25
25
  this.el.setCustomValidity?.(invalid ? this.tuiNativeValidator : '');
26
26
  }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNativeValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
28
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiNativeValidator, isStandalone: true, selector: "[tuiNativeValidator]", inputs: { tuiNativeValidator: "tuiNativeValidator" }, host: { listeners: { "focusout": "handleValidation()" } }, providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)], ngImport: i0 }); }
27
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
28
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiNativeValidator, isStandalone: true, selector: "[tuiNativeValidator]", inputs: { tuiNativeValidator: "tuiNativeValidator" }, host: { listeners: { "focusout": "handleValidation()" } }, providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)], ngImport: i0 }); }
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiNativeValidator, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiNativeValidator, decorators: [{
31
31
  type: Directive,
32
32
  args: [{
33
33
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-native-validator.mjs","sources":["../../../projects/cdk/directives/native-validator/native-validator.directive.ts","../../../projects/cdk/directives/native-validator/taiga-ui-cdk-directives-native-validator.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {type AbstractControl, NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiTakeUntilDestroyed, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiProvide} from '@taiga-ui/cdk/utils';\nimport {BehaviorSubject, delay, of, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiNativeValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)],\n host: {\n '(focusout)': 'handleValidation()',\n },\n})\nexport class TuiNativeValidator implements Validator {\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly control$ = new BehaviorSubject<AbstractControl | null>(null);\n\n protected readonly sub = this.control$\n .pipe(\n switchMap((control: any) => control?.events || of(null)),\n delay(0),\n tuiZonefree(),\n tuiTakeUntilDestroyed(),\n )\n .subscribe(() => this.handleValidation());\n\n @Input()\n public tuiNativeValidator = 'Invalid';\n\n public validate(control: AbstractControl): null {\n this.control$.next(control);\n\n return null;\n }\n\n protected handleValidation(): void {\n const invalid = !!this.control$.value?.touched && this.control$.value?.invalid;\n\n // TODO: Replace with :has(:invalid) when supported\n this.el.closest('tui-textfield')?.classList.toggle('tui-invalid', invalid);\n this.el.setCustomValidity?.(invalid ? this.tuiNativeValidator : '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA,MAQa,kBAAkB,CAAA;AAR/B,IAAA,WAAA,GAAA;QASqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB,CAAC;AAC1C,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAyB,IAAI,CAAC,CAAC;QAE3D,IAAG,CAAA,GAAA,GAAG,IAAI,CAAC,QAAQ;AACjC,aAAA,IAAI,CACD,SAAS,CAAC,CAAC,OAAY,KAAK,OAA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,EAAA,UAAA,EAAA,CAAA;kBAR9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;oBAChC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAAsB,kBAAA,EAAA,IAAI,CAAC,CAAC;AAChE,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,oBAAoB;AACrC,qBAAA;AACJ,iBAAA,CAAA;8BAeU,kBAAkB,EAAA,CAAA;sBADxB,KAAK;;;AC3BV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-native-validator.mjs","sources":["../../../projects/cdk/directives/native-validator/native-validator.directive.ts","../../../projects/cdk/directives/native-validator/taiga-ui-cdk-directives-native-validator.ts"],"sourcesContent":["import {Directive, Input} from '@angular/core';\nimport {type AbstractControl, NG_VALIDATORS, type Validator} from '@angular/forms';\nimport {tuiTakeUntilDestroyed, tuiZonefree} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement, tuiProvide} from '@taiga-ui/cdk/utils';\nimport {BehaviorSubject, delay, of, switchMap} from 'rxjs';\n\n@Directive({\n standalone: true,\n selector: '[tuiNativeValidator]',\n providers: [tuiProvide(NG_VALIDATORS, TuiNativeValidator, true)],\n host: {\n '(focusout)': 'handleValidation()',\n },\n})\nexport class TuiNativeValidator implements Validator {\n private readonly el = tuiInjectElement<HTMLInputElement>();\n private readonly control$ = new BehaviorSubject<AbstractControl | null>(null);\n\n protected readonly sub = this.control$\n .pipe(\n switchMap((control: any) => control?.events || of(null)),\n delay(0),\n tuiZonefree(),\n tuiTakeUntilDestroyed(),\n )\n .subscribe(() => this.handleValidation());\n\n @Input()\n public tuiNativeValidator = 'Invalid';\n\n public validate(control: AbstractControl): null {\n this.control$.next(control);\n\n return null;\n }\n\n protected handleValidation(): void {\n const invalid = !!this.control$.value?.touched && this.control$.value?.invalid;\n\n // TODO: Replace with :has(:invalid) when supported\n this.el.closest('tui-textfield')?.classList.toggle('tui-invalid', invalid);\n this.el.setCustomValidity?.(invalid ? this.tuiNativeValidator : '');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAca,kBAAkB,CAAA;AAR/B,IAAA,WAAA,GAAA;QASqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAoB;AACzC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,eAAe,CAAyB,IAAI,CAAC;QAE1D,IAAG,CAAA,GAAA,GAAG,IAAI,CAAC;AACzB,aAAA,IAAI,CACD,SAAS,CAAC,CAAC,OAAY,KAAK,OAAO,EAAE,MAAM,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,EACxD,KAAK,CAAC,CAAC,CAAC,EACR,WAAW,EAAE,EACb,qBAAqB,EAAE;aAE1B,SAAS,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAGtC,IAAkB,CAAA,kBAAA,GAAG,SAAS;AAexC;AAbU,IAAA,QAAQ,CAAC,OAAwB,EAAA;AACpC,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC;AAE3B,QAAA,OAAO,IAAI;;IAGL,gBAAgB,GAAA;AACtB,QAAA,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO;;AAG9E,QAAA,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC;AAC1E,QAAA,IAAI,CAAC,EAAE,CAAC,iBAAiB,GAAG,OAAO,GAAG,IAAI,CAAC,kBAAkB,GAAG,EAAE,CAAC;;+GA3B9D,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,MAAA,EAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,EAAA,EAAA,SAAA,EALhB,CAAC,UAAU,CAAC,aAAa,EAAE,kBAAkB,EAAE,IAAI,CAAC,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAKvD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAR9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;oBAChC,SAAS,EAAE,CAAC,UAAU,CAAC,aAAa,EAAsB,kBAAA,EAAA,IAAI,CAAC,CAAC;AAChE,oBAAA,IAAI,EAAE;AACF,wBAAA,YAAY,EAAE,oBAAoB;AACrC,qBAAA;AACJ,iBAAA;8BAeU,kBAAkB,EAAA,CAAA;sBADxB;;;AC3BL;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injectable, Directive, Output, Input } from '@angular/core';
2
+ import { inject, Injectable, Input, Output, Directive } from '@angular/core';
3
3
  import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
4
4
  import { tuiZonefreeScheduler, tuiZoneOptimized, tuiIfMap } from '@taiga-ui/cdk/observables';
5
5
  import { Observable, throttleTime, map, startWith, distinctUntilChanged, BehaviorSubject } from 'rxjs';
@@ -16,12 +16,12 @@ class TuiObscuredService extends Observable {
16
16
  this.el = tuiInjectElement();
17
17
  this.obscured$ = inject(WA_ANIMATION_FRAME).pipe(throttleTime(100, tuiZonefreeScheduler()), map(() => tuiGetElementObscures(this.el)), startWith(null), distinctUntilChanged(), tuiZoneOptimized());
18
18
  }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscuredService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
20
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscuredService }); }
19
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscuredService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
20
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscuredService }); }
21
21
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscuredService, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscuredService, decorators: [{
23
23
  type: Injectable
24
- }], ctorParameters: function () { return []; } });
24
+ }], ctorParameters: () => [] });
25
25
 
26
26
  /**
27
27
  * Directive that monitors element visibility
@@ -30,16 +30,16 @@ class TuiObscured {
30
30
  constructor() {
31
31
  this.activeZone = inject(TuiActiveZone, { optional: true });
32
32
  this.enabled$ = new BehaviorSubject(false);
33
- this.obscured$ = inject(TuiObscuredService, { self: true }).pipe(map((by) => !!by?.every((el) => !this.activeZone?.contains(el))));
33
+ this.obscured$ = inject(TuiObscuredService, { self: true }).pipe(map((by) => !!by?.every((el) => check(el) || !this.activeZone?.contains(el))));
34
34
  this.tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));
35
35
  }
36
36
  set tuiObscuredEnabled(enabled) {
37
37
  this.enabled$.next(enabled);
38
38
  }
39
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscured, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
40
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiObscured, isStandalone: true, selector: "[tuiObscured]", inputs: { tuiObscuredEnabled: "tuiObscuredEnabled" }, outputs: { tuiObscured: "tuiObscured" }, providers: [TuiObscuredService], ngImport: i0 }); }
39
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscured, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
40
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiObscured, isStandalone: true, selector: "[tuiObscured]", inputs: { tuiObscuredEnabled: "tuiObscuredEnabled" }, outputs: { tuiObscured: "tuiObscured" }, providers: [TuiObscuredService], ngImport: i0 }); }
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiObscured, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiObscured, decorators: [{
43
43
  type: Directive,
44
44
  args: [{
45
45
  standalone: true,
@@ -51,6 +51,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
51
51
  }], tuiObscuredEnabled: [{
52
52
  type: Input
53
53
  }] } });
54
+ // TODO: Refactor so that dropdowns and dialogs work properly without hacks
55
+ function check(el) {
56
+ return (!!el.closest('tui-dialogs') &&
57
+ // eslint-disable-next-line unicorn/prefer-query-selector
58
+ !!el.ownerDocument.documentElement.getElementsByTagName('tui-dropdown').length);
59
+ }
54
60
 
55
61
  /**
56
62
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-obscured.mjs","sources":["../../../projects/cdk/directives/obscured/obscured.service.ts","../../../projects/cdk/directives/obscured/obscured.directive.ts","../../../projects/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiGetElementObscures, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {distinctUntilChanged, map, Observable, startWith, throttleTime} from 'rxjs';\n\n/**\n * Service that monitors element visibility by polling and returning\n * either null or an array of elements that overlap given element edges\n */\n@Injectable()\nexport class TuiObscuredService extends Observable<readonly Element[] | null> {\n private readonly el = tuiInjectElement();\n private readonly obscured$ = inject(WA_ANIMATION_FRAME).pipe(\n throttleTime(100, tuiZonefreeScheduler()),\n map(() => tuiGetElementObscures(this.el)),\n startWith(null),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n );\n\n constructor() {\n super((subscriber) => this.obscured$.subscribe(subscriber));\n }\n}\n","import {Directive, inject, Input, Output} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {BehaviorSubject, map} from 'rxjs';\n\nimport {TuiObscuredService} from './obscured.service';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n standalone: true,\n selector: '[tuiObscured]',\n providers: [TuiObscuredService],\n})\nexport class TuiObscured {\n private readonly activeZone = inject(TuiActiveZone, {optional: true});\n private readonly enabled$ = new BehaviorSubject(false);\n private readonly obscured$ = inject(TuiObscuredService, {self: true}).pipe(\n map((by) => !!by?.every((el) => !this.activeZone?.contains(el))),\n );\n\n @Output()\n public readonly tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));\n\n @Input()\n public set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;;;AAGG;AACH,MACa,kBAAmB,SAAQ,UAAqC,CAAA;AAUzE,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KA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CAAC,CAAC;AAMpF,KAAA;IAJG,IACW,kBAAkB,CAAC,OAAgB,EAAA;AAC1C,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAC/B;+GAbQ,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,SAAA,EAFT,CAAC,kBAAkB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAEtB,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,eAAe;oBACzB,SAAS,EAAE,CAAC,kBAAkB,CAAC;AAClC,iBAAA,CAAA;8BASmB,WAAW,EAAA,CAAA;sBAD1B,MAAM;gBAII,kBAAkB,EAAA,CAAA;sBAD5B,KAAK;;;ACzBV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-obscured.mjs","sources":["../../../projects/cdk/directives/obscured/obscured.service.ts","../../../projects/cdk/directives/obscured/obscured.directive.ts","../../../projects/cdk/directives/obscured/taiga-ui-cdk-directives-obscured.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\nimport {WA_ANIMATION_FRAME} from '@ng-web-apis/common';\nimport {tuiZonefreeScheduler, tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {tuiGetElementObscures, tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {distinctUntilChanged, map, Observable, startWith, throttleTime} from 'rxjs';\n\n/**\n * Service that monitors element visibility by polling and returning\n * either null or an array of elements that overlap given element edges\n */\n@Injectable()\nexport class TuiObscuredService extends Observable<readonly Element[] | null> {\n private readonly el = tuiInjectElement();\n private readonly obscured$ = inject(WA_ANIMATION_FRAME).pipe(\n throttleTime(100, tuiZonefreeScheduler()),\n map(() => tuiGetElementObscures(this.el)),\n startWith(null),\n distinctUntilChanged(),\n tuiZoneOptimized(),\n );\n\n constructor() {\n super((subscriber) => this.obscured$.subscribe(subscriber));\n }\n}\n","import {Directive, inject, Input, Output} from '@angular/core';\nimport {TuiActiveZone} from '@taiga-ui/cdk/directives/active-zone';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {BehaviorSubject, map} from 'rxjs';\n\nimport {TuiObscuredService} from './obscured.service';\n\n/**\n * Directive that monitors element visibility\n */\n@Directive({\n standalone: true,\n selector: '[tuiObscured]',\n providers: [TuiObscuredService],\n})\nexport class TuiObscured {\n private readonly activeZone = inject(TuiActiveZone, {optional: true});\n private readonly enabled$ = new BehaviorSubject(false);\n private readonly obscured$ = inject(TuiObscuredService, {self: true}).pipe(\n map((by) => !!by?.every((el) => check(el) || !this.activeZone?.contains(el))),\n );\n\n @Output()\n public readonly tuiObscured = this.enabled$.pipe(tuiIfMap(() => this.obscured$));\n\n @Input()\n public set tuiObscuredEnabled(enabled: boolean) {\n this.enabled$.next(enabled);\n }\n}\n\n// TODO: Refactor so that dropdowns and dialogs work properly without hacks\nfunction check(el: Element): boolean {\n return (\n !!el.closest('tui-dialogs') &&\n // eslint-disable-next-line unicorn/prefer-query-selector\n !!el.ownerDocument.documentElement.getElementsByTagName('tui-dropdown').length\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAMA;;;AAGG;AAEG,MAAO,kBAAmB,SAAQ,UAAqC,CAAA;AAUzE,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,CAAC,CAAC,UAAU,KAAK,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAA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,IAAI,CAAC,OAAO,CAAC;;+GAZtB,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,EAAA,OAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,SAAA,EAFT,CAAC,kBAAkB,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEtB,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,eAAe;oBACzB,SAAS,EAAE,CAAC,kBAAkB,CAAC;AAClC,iBAAA;8BASmB,WAAW,EAAA,CAAA;sBAD1B;gBAIU,kBAAkB,EAAA,CAAA;sBAD5B;;AAML;AACA,SAAS,KAAK,CAAC,EAAW,EAAA;IACtB,QACI,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;;AAE3B,QAAA,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,eAAe,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC,MAAM;AAEtF;;ACtCA;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Injectable, Directive, Output } from '@angular/core';
2
+ import { inject, Injectable, Output, Directive } from '@angular/core';
3
3
  import { DOCUMENT } from '@angular/common';
4
4
  import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
5
5
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
@@ -19,21 +19,21 @@ class TuiPanService extends Observable {
19
19
  }), takeUntil(merge(tuiTypedFromEvent(doc, 'touchend'), tuiTypedFromEvent(doc, 'mouseup'))), repeat())
20
20
  .subscribe(subscriber));
21
21
  }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPanService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPanService }); }
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPanService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPanService }); }
24
24
  }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPanService, decorators: [{
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPanService, decorators: [{
26
26
  type: Injectable
27
- }], ctorParameters: function () { return []; } });
27
+ }], ctorParameters: () => [] });
28
28
 
29
29
  class TuiPan {
30
30
  constructor() {
31
31
  this.tuiPan = inject(TuiPanService);
32
32
  }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPan, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPan, isStandalone: true, selector: "[tuiPan]", outputs: { tuiPan: "tuiPan" }, providers: [TuiPanService], ngImport: i0 }); }
33
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPan, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
34
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPan, isStandalone: true, selector: "[tuiPan]", outputs: { tuiPan: "tuiPan" }, providers: [TuiPanService], ngImport: i0 }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPan, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPan, decorators: [{
37
37
  type: Directive,
38
38
  args: [{
39
39
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-pan.mjs","sources":["../../../projects/cdk/directives/pan/pan.service.ts","../../../projects/cdk/directives/pan/pan.directive.ts","../../../projects/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["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 {\n filter,\n map,\n merge,\n Observable,\n pairwise,\n repeat,\n switchMap,\n takeUntil,\n} from 'rxjs';\n\n@Injectable()\nexport class TuiPanService extends Observable<readonly [number, number]> {\n constructor() {\n const el = tuiInjectElement();\n const doc = inject(DOCUMENT);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}),\n tuiTypedFromEvent(el, 'mousedown'),\n )\n .pipe(\n switchMap(() =>\n merge(\n tuiTypedFromEvent(doc, 'touchmove', {\n passive: true,\n }).pipe(\n filter(({touches}) => touches.length < 2),\n map(({touches}) => touches[0]),\n ),\n tuiTypedFromEvent(doc, 'mousemove'),\n ),\n ),\n pairwise(),\n map(([first, second]) => {\n const deltaX = (second?.clientX ?? 0) - (first?.clientX ?? 0);\n const deltaY = (second?.clientY ?? 0) - (first?.clientY ?? 0);\n\n return [deltaX, deltaY] as [number, number];\n }),\n takeUntil(\n merge(\n tuiTypedFromEvent(doc, 'touchend'),\n tuiTypedFromEvent(doc, 'mouseup'),\n ),\n ),\n repeat(),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiPanService} from './pan.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiPan]',\n providers: [TuiPanService],\n})\nexport class TuiPan {\n @Output()\n public readonly tuiPan = inject(TuiPanService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAeA,MACa,aAAc,SAAQ,UAAqC,CAAA;AACpE,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;AAC9B,QAAA,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE7B,KAAK,CAAC,CAAC,UAAU,KACb,KAAK,CACD,iBAAiB,CAAC,EAAE,EAAE,YAAY,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,EACpD,iBAAiB,CAAC,EAAE,EAAE,WAAW,CAAC,CACrC;AACI,aAAA,IAAI,CACD,SAAS,CAAC,MACN,KAAK,CACD,iBAAiB,CAAC,GAAG,EAAE,WAAW,EAAE;AAChC,YAAA,OAAO,EAAE,IAAI;SAChB,CAAC,CAAC,IAAI,CACH,MAAM,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EACzC,GAAG,CAAC,CAAC,EAAC,OAAO,EAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,CACjC,EACD,iBAAiB,CAAC,GAAG,EAAE,WAAW,CAAC,CACtC,CACJ,EACD,QAAQ,EAAE,EACV,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,KAAI;AACpB,YAAA,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,KAAK,KAAK,EAAE,OAAO,IAAI,CAAC,CAAC,CAAC;AAC9D,YAAA,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,IAAI,CAAC,KAAK,KAAK,EAAE,O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.mjs","sources":["../../../projects/cdk/directives/pan/pan.service.ts","../../../projects/cdk/directives/pan/pan.directive.ts","../../../projects/cdk/directives/pan/taiga-ui-cdk-directives-pan.ts"],"sourcesContent":["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 {\n filter,\n map,\n merge,\n Observable,\n pairwise,\n repeat,\n switchMap,\n takeUntil,\n} from 'rxjs';\n\n@Injectable()\nexport class TuiPanService extends Observable<readonly [number, number]> {\n constructor() {\n const el = tuiInjectElement();\n const doc = inject(DOCUMENT);\n\n super((subscriber) =>\n merge(\n tuiTypedFromEvent(el, 'touchstart', {passive: true}),\n tuiTypedFromEvent(el, 'mousedown'),\n )\n .pipe(\n switchMap(() =>\n merge(\n tuiTypedFromEvent(doc, 'touchmove', {\n passive: true,\n }).pipe(\n filter(({touches}) => touches.length < 2),\n map(({touches}) => touches[0]),\n ),\n tuiTypedFromEvent(doc, 'mousemove'),\n ),\n ),\n pairwise(),\n map(([first, second]) => {\n const deltaX = (second?.clientX ?? 0) - (first?.clientX ?? 0);\n const deltaY = (second?.clientY ?? 0) - (first?.clientY ?? 0);\n\n return [deltaX, deltaY] as [number, number];\n }),\n takeUntil(\n merge(\n tuiTypedFromEvent(doc, 'touchend'),\n tuiTypedFromEvent(doc, 'mouseup'),\n ),\n ),\n repeat(),\n )\n .subscribe(subscriber),\n );\n }\n}\n","import {Directive, inject, Output} from '@angular/core';\n\nimport {TuiPanService} from './pan.service';\n\n@Directive({\n standalone: true,\n selector: '[tuiPan]',\n providers: [TuiPanService],\n})\nexport class TuiPan {\n @Output()\n public readonly tuiPan = inject(TuiPanService);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAgBM,MAAO,aAAc,SAAQ,UAAqC,CAAA;AACpE,IAAA,WAAA,GAAA;AACI,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CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAb,aAAa,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB;;;MCNY,MAAM,CAAA;AALnB,IAAA,WAAA,GAAA;AAOoB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC;AACjD;+GAHY,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,OAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,SAAA,EAFJ,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAEjB,MAAM,EAAA,UAAA,EAAA,CAAA;kBALlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;oBACpB,SAAS,EAAE,CAAC,aAAa,CAAC;AAC7B,iBAAA;8BAGmB,MAAM,EAAA,CAAA;sBADrB;;;ACVL;;AAEG;;;;"}
@@ -1,20 +1,20 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Directive, Input } from '@angular/core';
2
+ import { inject, Input, Directive } from '@angular/core';
3
3
  import { TUI_PLATFORM } from '@taiga-ui/cdk/tokens';
4
4
 
5
5
  class TuiPlatform {
6
6
  constructor() {
7
7
  this.tuiPlatform = inject(TUI_PLATFORM, { skipSelf: true });
8
8
  }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPlatform, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
10
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPlatform, isStandalone: true, selector: "[tuiPlatform]", inputs: { tuiPlatform: "tuiPlatform" }, host: { properties: { "attr.data-platform": "tuiPlatform" } }, providers: [
9
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPlatform, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
10
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPlatform, isStandalone: true, selector: "[tuiPlatform]", inputs: { tuiPlatform: "tuiPlatform" }, host: { properties: { "attr.data-platform": "tuiPlatform" } }, providers: [
11
11
  {
12
12
  provide: TUI_PLATFORM,
13
13
  useFactory: () => inject(TuiPlatform).tuiPlatform,
14
14
  },
15
15
  ], ngImport: i0 }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPlatform, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPlatform, decorators: [{
18
18
  type: Directive,
19
19
  args: [{
20
20
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-platform.mjs","sources":["../../../projects/cdk/directives/platform/platform.directive.ts","../../../projects/cdk/directives/platform/taiga-ui-cdk-directives-platform.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n standalone: true,\n selector: '[tuiPlatform]',\n providers: [\n {\n provide: TUI_PLATFORM,\n useFactory: () => inject(TuiPlatform).tuiPlatform,\n },\n ],\n host: {\n '[attr.data-platform]': 'tuiPlatform',\n },\n})\nexport class TuiPlatform {\n @Input()\n public tuiPlatform = inject(TUI_PLATFORM, {skipSelf: true});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA,MAaa,WAAW,CAAA;AAbxB,IAAA,WAAA,GAA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../../projects/cdk/directives/platform/platform.directive.ts","../../../projects/cdk/directives/platform/taiga-ui-cdk-directives-platform.ts"],"sourcesContent":["import {Directive, inject, Input} from '@angular/core';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\n\n@Directive({\n standalone: true,\n selector: '[tuiPlatform]',\n providers: [\n {\n provide: TUI_PLATFORM,\n useFactory: () => inject(TuiPlatform).tuiPlatform,\n },\n ],\n host: {\n '[attr.data-platform]': 'tuiPlatform',\n },\n})\nexport class TuiPlatform {\n @Input()\n public tuiPlatform = inject(TUI_PLATFORM, {skipSelf: true});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgBa,WAAW,CAAA;AAbxB,IAAA,WAAA,GAAA;QAeW,IAAW,CAAA,WAAA,GAAG,MAAM,CAAC,YAAY,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AAC9D;+GAHY,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,WAAW,EAVT,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,oBAAA,EAAA,aAAA,EAAA,EAAA,EAAA,SAAA,EAAA;AACP,YAAA;AACI,gBAAA,OAAO,EAAE,YAAY;gBACrB,UAAU,EAAE,MAAM,MAAM,CAAC,WAAW,CAAC,CAAC,WAAW;AACpD,aAAA;AACJ,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAKQ,WAAW,EAAA,UAAA,EAAA,CAAA;kBAbvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,SAAS,EAAE;AACP,wBAAA;AACI,4BAAA,OAAO,EAAE,YAAY;AACrB,4BAAA,UAAU,EAAE,MAAM,MAAM,CAAA,WAAA,CAAa,CAAC,WAAW;AACpD,yBAAA;AACJ,qBAAA;AACD,oBAAA,IAAI,EAAE;AACF,wBAAA,sBAAsB,EAAE,aAAa;AACxC,qBAAA;AACJ,iBAAA;8BAGU,WAAW,EAAA,CAAA;sBADjB;;;ACjBL;;AAEG;;;;"}
@@ -17,10 +17,10 @@ class TuiPopoverDirective extends PolymorpheusTemplate {
17
17
  ngOnChanges() {
18
18
  this.open$.next(this.open);
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiPopoverDirective, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPopoverDirective, isStandalone: true, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiPopoverDirective, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverDirective, decorators: [{
24
24
  type: Directive
25
25
  }] });
26
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-popover.mjs","sources":["../../../projects/cdk/directives/popover/popover.directive.ts","../../../projects/cdk/directives/popover/taiga-ui-cdk-directives-popover.ts"],"sourcesContent":["import {Directive, inject, type OnChanges} from '@angular/core';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs';\n\n@Directive()\nexport abstract class TuiPopoverDirective<T>\n extends PolymorpheusTemplate<TuiPopover<T, void>>\n implements OnChanges\n{\n private readonly service = inject(TuiPopoverService<T>);\n private readonly open$ = new Subject<boolean>();\n\n public options: Partial<T> = {};\n public open = false;\n\n public readonly openChange = this.open$.pipe(\n distinctUntilChanged(),\n tuiIfMap(() =>\n this.service.open(this, this.options).pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n );\n\n public ngOnChanges(): void {\n this.open$.next(this.open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA,MACsB,mBAClB,SAAQ,oBAAyC,CAAA;AAFrD,IAAA,WAAA,GAAA;;AAKqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,iBAAoB,EAAC,CAAC;AACvC,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,OAAO,EAAW,CAAC;QAEzC,IAAO,CAAA,OAAA,GAAe,EAAE,CAAC;QACzB,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC;AAEJ,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CACxC,oBAAoB,EAAE,EACtB,QAAQ,CAAC,MACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAC/E,EACD,KAAK,EAAE,CACV,CAAC;AAKL,KAAA;IAHU,WAAW,GAAA;QACd,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;+GApBiB,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAnB,mBAAmB,EAAA,eAAA,EAAA,IAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBADxC,SAAS;;;ACNV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-popover.mjs","sources":["../../../projects/cdk/directives/popover/popover.directive.ts","../../../projects/cdk/directives/popover/taiga-ui-cdk-directives-popover.ts"],"sourcesContent":["import {Directive, inject, type OnChanges} from '@angular/core';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs';\n\n@Directive()\nexport abstract class TuiPopoverDirective<T>\n extends PolymorpheusTemplate<TuiPopover<T, void>>\n implements OnChanges\n{\n private readonly service = inject(TuiPopoverService<T>);\n private readonly open$ = new Subject<boolean>();\n\n public options: Partial<T> = {};\n public open = false;\n\n public readonly openChange = this.open$.pipe(\n distinctUntilChanged(),\n tuiIfMap(() =>\n this.service.open(this, this.options).pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n );\n\n public ngOnChanges(): void {\n this.open$.next(this.open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOM,MAAgB,mBAClB,SAAQ,oBAAyC,CAAA;AAFrD,IAAA,WAAA,GAAA;;AAKqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,iBAAoB,EAAC;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,OAAO,EAAW;QAExC,IAAO,CAAA,OAAA,GAAe,EAAE;QACxB,IAAI,CAAA,IAAA,GAAG,KAAK;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CACxC,oBAAoB,EAAE,EACtB,QAAQ,CAAC,MACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAC/E,EACD,KAAK,EAAE,CACV;AAKJ;IAHU,WAAW,GAAA;QACd,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;+GAnBZ,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,eAAA,EAAA,IAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBADxC;;;ACND;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, Directive, Input } from '@angular/core';
2
+ import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
3
3
  import { tuiClamp } from '@taiga-ui/cdk/utils/math';
4
4
 
5
5
  const MAX_VALUE = 0x10000;
@@ -17,12 +17,12 @@ class TuiRepeatTimesContext {
17
17
  */
18
18
  class TuiRepeatTimes {
19
19
  constructor() {
20
- this.viewContainer = inject(ViewContainerRef);
21
- this.templateRef = inject((TemplateRef));
20
+ this.vcr = inject(ViewContainerRef);
21
+ this.template = inject((TemplateRef));
22
22
  }
23
23
  set tuiRepeatTimesOf(count) {
24
24
  const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));
25
- const { length } = this.viewContainer;
25
+ const { length } = this.vcr;
26
26
  if (count < length) {
27
27
  this.removeContainers(length - count);
28
28
  }
@@ -31,19 +31,19 @@ class TuiRepeatTimes {
31
31
  }
32
32
  }
33
33
  addContainers(count) {
34
- for (let index = this.viewContainer.length; index < count; index++) {
35
- this.viewContainer.createEmbeddedView(this.templateRef, new TuiRepeatTimesContext(index));
34
+ for (let index = this.vcr.length; index < count; index++) {
35
+ this.vcr.createEmbeddedView(this.template, new TuiRepeatTimesContext(index));
36
36
  }
37
37
  }
38
38
  removeContainers(amount) {
39
39
  for (let index = 0; index < amount; index++) {
40
- this.viewContainer.remove();
40
+ this.vcr.remove();
41
41
  }
42
42
  }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: "tuiRepeatTimesOf" }, ngImport: i0 }); }
43
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: "tuiRepeatTimesOf" }, ngImport: i0 }); }
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiRepeatTimes, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, decorators: [{
47
47
  type: Directive,
48
48
  args: [{
49
49
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-repeat-times.mjs","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContext<number> {\n constructor(public readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n standalone: true,\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly viewContainer = inject(ViewContainerRef);\n private readonly templateRef = inject(TemplateRef<TuiRepeatTimesContext>);\n\n @Input()\n public set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));\n\n const {length} = this.viewContainer;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n private addContainers(count: number): void {\n for (let index = this.viewContainer.length; index < count; index++) {\n this.viewContainer.createEmbeddedView<TuiRepeatTimesContext>(\n this.templateRef,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index = 0; index < amount; index++) {\n this.viewContainer.remove();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.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AK,EAAE,EAAE;AACzC,YAAA,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;AAC/B,SAAA;KACJ;+GA9BQ,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA,CAAA;8BAMc,gBAAgB,EAAA,CAAA;sBAD1B,KAAK;;;ACzBV;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-repeat-times.mjs","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContext<number> {\n constructor(public readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n standalone: true,\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly vcr = inject(ViewContainerRef);\n private readonly template = inject(TemplateRef<TuiRepeatTimesContext>);\n\n @Input()\n public set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));\n\n const {length} = this.vcr;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n private addContainers(count: number): void {\n for (let index = this.vcr.length; index < count; index++) {\n this.vcr.createEmbeddedView<TuiRepeatTimesContext>(\n this.template,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index = 0; index < amount; index++) {\n this.vcr.remove();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA,MAAM,SAAS,GAAG,OAAO;MAEZ,qBAAqB,CAAA;AAC9B,IAAA,WAAA,CAA4B,SAAiB,EAAA;QAAjB,IAAS,CAAA,SAAA,GAAT,SAAS;;AACxC;AAED;;;;;;AAMG;MAKU,cAAc,CAAA;AAJ3B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAC,WAAkC,EAAC;AA6BzE;IA3BG,IACW,gBAAgB,CAAC,KAAa,EAAA;AACrC,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AAE3D,QAAA,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC,GAAG;AAEzB,QAAA,IAAI,KAAK,GAAG,MAAM,EAAE;AAChB,YAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAC;;aAClC;AACH,YAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC;;;AAI7B,IAAA,aAAa,CAAC,KAAa,EAAA;AAC/B,QAAA,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE;AACtD,YAAA,IAAI,CAAC,GAAG,CAAC,kBAAkB,CACvB,IAAI,CAAC,QAAQ,EACb,IAAI,qBAAqB,CAAC,KAAK,CAAC,CACnC;;;AAID,IAAA,gBAAgB,CAAC,MAAc,EAAA;AACnC,QAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;AACzC,YAAA,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;;;+GA5BhB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA;8BAMc,gBAAgB,EAAA,CAAA;sBAD1B;;;ACzBL;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Directive, inject, EventEmitter, Input, Output } from '@angular/core';
2
+ import { Directive, inject, EventEmitter, Output, Input } from '@angular/core';
3
3
  import { TuiElement } from '@taiga-ui/cdk/directives/element';
4
4
  import { tuiPx } from '@taiga-ui/cdk/utils/miscellaneous';
5
5
 
6
6
  class TuiResizable extends TuiElement {
7
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiResizable, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
8
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiResizable, isStandalone: true, selector: "[tuiResizable]", usesInheritance: true, ngImport: i0 }); }
7
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizable, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
8
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiResizable, isStandalone: true, selector: "[tuiResizable]", usesInheritance: true, ngImport: i0 }); }
9
9
  }
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiResizable, decorators: [{
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizable, decorators: [{
11
11
  type: Directive,
12
12
  args: [{
13
13
  standalone: true,
@@ -71,10 +71,10 @@ class TuiResizer {
71
71
  }
72
72
  this.tuiSizeChange.emit(size);
73
73
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiResizer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
75
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiResizer, isStandalone: true, selector: "[tuiResizer]", inputs: { tuiResizer: "tuiResizer" }, outputs: { tuiSizeChange: "tuiSizeChange" }, host: { listeners: { "pointerdown.zoneless.prevent": "onPointerDown($event.x, $event.y)", "document:pointermove.zoneless": "onPointerMove($event)", "document:pointerup.zoneless": "onPointerUp()" }, properties: { "style.cursor": "cursor", "style.touchAction": "\"none\"" } }, ngImport: i0 }); }
74
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
75
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiResizer, isStandalone: true, selector: "[tuiResizer]", inputs: { tuiResizer: "tuiResizer" }, outputs: { tuiSizeChange: "tuiSizeChange" }, host: { listeners: { "pointerdown.zoneless.prevent": "onPointerDown($event.x, $event.y)", "document:pointermove.zoneless": "onPointerMove($event)", "document:pointerup.zoneless": "onPointerUp()" }, properties: { "style.cursor": "cursor", "style.touchAction": "\"none\"" } }, ngImport: i0 }); }
76
76
  }
77
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiResizer, decorators: [{
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiResizer, decorators: [{
78
78
  type: Directive,
79
79
  args: [{
80
80
  standalone: true,
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-resizer.mjs","sources":["../../../projects/cdk/directives/resizer/resizable.directive.ts","../../../projects/cdk/directives/resizer/resizer.directive.ts","../../../projects/cdk/directives/resizer/taiga-ui-cdk-directives-resizer.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TuiElement} from '@taiga-ui/cdk/directives/element';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizable]',\n})\nexport class TuiResizable extends TuiElement {}\n","import {\n Directive,\n type ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiResizable} from './resizable.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizer]',\n host: {\n '[style.cursor]': 'cursor',\n '[style.touchAction]': '\"none\"',\n '(pointerdown.zoneless.prevent)': 'onPointerDown($event.x, $event.y)',\n '(document:pointermove.zoneless)': 'onPointerMove($event)',\n '(document:pointerup.zoneless)': 'onPointerUp()',\n },\n})\nexport class TuiResizer {\n private readonly resizable: ElementRef<HTMLElement> = inject(TuiResizable);\n\n protected x = NaN;\n protected y = NaN;\n protected width = 0;\n protected height = 0;\n\n @Input()\n public tuiResizer: readonly [x: number, y: number] = [0, 0];\n\n @Output()\n public readonly tuiSizeChange = new EventEmitter<readonly [x: number, y: number]>();\n\n protected get cursor(): string {\n if (!this.tuiResizer[0]) {\n return 'ns-resize';\n }\n\n if (!this.tuiResizer[1]) {\n return 'ew-resize';\n }\n\n if (this.tuiResizer[0] * this.tuiResizer[1] > 0) {\n return 'nwse-resize';\n }\n\n return 'nesw-resize';\n }\n\n protected onPointerDown(x: number, y: number): void {\n this.x = x;\n this.y = y;\n this.width = this.resizable.nativeElement.clientWidth;\n this.height = this.resizable.nativeElement.clientHeight;\n }\n\n protected onPointerMove({x, y, buttons}: PointerEvent): void {\n if (!buttons) {\n this.onPointerUp();\n } else {\n this.onMove(x, y);\n }\n }\n\n protected onPointerUp(): void {\n this.x = NaN;\n }\n\n protected onMove(x: number, y: number): void {\n if (Number.isNaN(this.x)) {\n return;\n }\n\n const {style} = this.resizable.nativeElement;\n const size = [\n this.width + this.tuiResizer[0] * (x - this.x),\n this.height + this.tuiResizer[1] * (y - this.y),\n ] as const;\n\n if (this.tuiResizer[0]) {\n style.width = tuiPx(size[0]);\n }\n\n if (this.tuiResizer[1]) {\n style.height = tuiPx(size[1]);\n }\n\n this.tuiSizeChange.emit(size);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA,MAIa,YAAa,SAAQ,UAAU,CAAA;+GAA/B,YAAY,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,SAAS;AAAC,YAAA,IA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EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,OAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,8BAAA,EAAA,mCAAA,EAAA,+BAAA,EAAA,uBAAA,EAAA,6BAAA,EAAA,eAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACF,wBAAA,gBAAgB,EAAE,QAAQ;AAC1B,wBAAA,qBAAqB,EAAE,QAAQ;AAC/B,wBAAA,gCAAgC,EAAE,mCAAmC;AACrE,wBAAA,iCAAiC,EAAE,uBAAuB;AAC1D,wBAAA,+BAA+B,EAAE,eAAe;AACnD,qBAAA;AACJ,iBAAA,CAAA;8BAUU,UAAU,EAAA,CAAA;sBADhB,KAAK;gBAIU,aAAa,EAAA,CAAA;sBAD5B,MAAM;;;AClCX;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-directives-resizer.mjs","sources":["../../../projects/cdk/directives/resizer/resizable.directive.ts","../../../projects/cdk/directives/resizer/resizer.directive.ts","../../../projects/cdk/directives/resizer/taiga-ui-cdk-directives-resizer.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {TuiElement} from '@taiga-ui/cdk/directives/element';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizable]',\n})\nexport class TuiResizable extends TuiElement {}\n","import {\n Directive,\n type ElementRef,\n EventEmitter,\n inject,\n Input,\n Output,\n} from '@angular/core';\nimport {tuiPx} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {TuiResizable} from './resizable.directive';\n\n@Directive({\n standalone: true,\n selector: '[tuiResizer]',\n host: {\n '[style.cursor]': 'cursor',\n '[style.touchAction]': '\"none\"',\n '(pointerdown.zoneless.prevent)': 'onPointerDown($event.x, $event.y)',\n '(document:pointermove.zoneless)': 'onPointerMove($event)',\n '(document:pointerup.zoneless)': 'onPointerUp()',\n },\n})\nexport class TuiResizer {\n private readonly resizable: ElementRef<HTMLElement> = inject(TuiResizable);\n\n protected x = NaN;\n protected y = NaN;\n protected width = 0;\n protected height = 0;\n\n @Input()\n public tuiResizer: readonly [x: number, y: number] = [0, 0];\n\n @Output()\n public readonly tuiSizeChange = new EventEmitter<readonly [x: number, y: number]>();\n\n protected get cursor(): string {\n if (!this.tuiResizer[0]) {\n return 'ns-resize';\n }\n\n if (!this.tuiResizer[1]) {\n return 'ew-resize';\n }\n\n if (this.tuiResizer[0] * this.tuiResizer[1] > 0) {\n return 'nwse-resize';\n }\n\n return 'nesw-resize';\n }\n\n protected onPointerDown(x: number, y: number): void {\n this.x = x;\n this.y = y;\n this.width = this.resizable.nativeElement.clientWidth;\n this.height = this.resizable.nativeElement.clientHeight;\n }\n\n protected onPointerMove({x, y, buttons}: PointerEvent): void {\n if (!buttons) {\n this.onPointerUp();\n } else {\n this.onMove(x, y);\n }\n }\n\n protected onPointerUp(): void {\n this.x = NaN;\n }\n\n protected onMove(x: number, y: number): void {\n if (Number.isNaN(this.x)) {\n return;\n }\n\n const {style} = this.resizable.nativeElement;\n const size = [\n this.width + this.tuiResizer[0] * (x - this.x),\n this.height + this.tuiResizer[1] * (y - this.y),\n ] as const;\n\n if (this.tuiResizer[0]) {\n style.width = tuiPx(size[0]);\n }\n\n if (this.tuiResizer[1]) {\n style.height = tuiPx(size[1]);\n }\n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B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;;AAGjC,QAAA,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;;+GApExB,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,YAAA,EAAA,EAAA,OAAA,EAAA,EAAA,aAAA,EAAA,eAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,8BAAA,EAAA,mCAAA,EAAA,+BAAA,EAAA,uBAAA,EAAA,6BAAA,EAAA,eAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBAXtB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,cAAc;AACxB,oBAAA,IAAI,EAAE;AACF,wBAAA,gBAAgB,EAAE,QAAQ;AAC1B,wBAAA,qBAAqB,EAAE,QAAQ;AAC/B,wBAAA,gCAAgC,EAAE,mCAAmC;AACrE,wBAAA,iCAAiC,EAAE,uBAAuB;AAC1D,wBAAA,+BAA+B,EAAE,eAAe;AACnD,qBAAA;AACJ,iBAAA;8BAUU,UAAU,EAAA,CAAA;sBADhB;gBAIe,aAAa,EAAA,CAAA;sBAD5B;;;AClCL;;AAEG;;;;"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, Injectable, Directive, Output } from '@angular/core';
2
+ import { InjectionToken, inject, Injectable, Output, Directive } from '@angular/core';
3
3
  import { DOCUMENT } from '@angular/common';
4
4
  import { tuiTypedFromEvent } from '@taiga-ui/cdk/observables';
5
5
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
@@ -41,12 +41,12 @@ class TuiSwipeService extends Observable {
41
41
  }), filter(tuiIsPresent))
42
42
  .subscribe(subscriber));
43
43
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSwipeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
45
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSwipeService }); }
44
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
45
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipeService }); }
46
46
  }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSwipeService, decorators: [{
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipeService, decorators: [{
48
48
  type: Injectable
49
- }], ctorParameters: function () { return []; } });
49
+ }], ctorParameters: () => [] });
50
50
  function tuiGetSwipeDirection(deltaX, deltaY) {
51
51
  if (Math.abs(deltaY) > Math.abs(deltaX)) {
52
52
  return deltaY > 0 ? 'top' : 'bottom';
@@ -58,10 +58,10 @@ class TuiSwipe {
58
58
  constructor() {
59
59
  this.tuiSwipe = inject(TuiSwipeService);
60
60
  }
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSwipe, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
62
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiSwipe, isStandalone: true, selector: "[tuiSwipe]", outputs: { tuiSwipe: "tuiSwipe" }, providers: [TuiSwipeService], ngImport: i0 }); }
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipe, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
62
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiSwipe, isStandalone: true, selector: "[tuiSwipe]", outputs: { tuiSwipe: "tuiSwipe" }, providers: [TuiSwipeService], ngImport: i0 }); }
63
63
  }
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiSwipe, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiSwipe, decorators: [{
65
65
  type: Directive,
66
66
  args: [{
67
67
  standalone: true,