@taiga-ui/cdk 4.52.0-canary.216e347 → 4.52.0-canary.217a686

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 (846) hide show
  1. package/README.md +1 -1
  2. package/classes/control.d.ts +3 -5
  3. package/classes/index.d.ts +0 -1
  4. package/constants/handlers.d.ts +2 -0
  5. package/constants/index.d.ts +0 -1
  6. package/constants/used-icons.d.ts +2 -2
  7. package/constants/version.d.ts +1 -1
  8. package/constants/version.js +1 -1
  9. package/date-time/date-fillers.d.ts +5 -5
  10. package/date-time/date-time.d.ts +1 -1
  11. package/date-time/day-range.d.ts +1 -1
  12. package/date-time/day.d.ts +4 -4
  13. package/date-time/time.d.ts +2 -2
  14. package/date-time/types.d.ts +1 -12
  15. package/directives/active-zone/active-zone.directive.d.ts +4 -5
  16. package/directives/animated/animated.directive.d.ts +1 -4
  17. package/directives/animated/index.d.ts +0 -1
  18. package/directives/auto-focus/autofocus.directive.d.ts +2 -3
  19. package/directives/auto-focus/autofocus.options.d.ts +2 -2
  20. package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
  21. package/directives/hovered/hovered.directive.d.ts +1 -2
  22. package/directives/index.d.ts +1 -6
  23. package/directives/media/media.directive.d.ts +8 -12
  24. package/directives/native-validator/native-validator.directive.d.ts +2 -2
  25. package/directives/obscured/obscured.directive.d.ts +4 -4
  26. package/directives/pan/pan.directive.d.ts +1 -2
  27. package/directives/platform/platform.directive.d.ts +2 -2
  28. package/directives/resizer/resizer.directive.d.ts +3 -4
  29. package/directives/swipe/swipe.directive.d.ts +1 -2
  30. package/directives/transitioned/transitioned.directive.d.ts +1 -0
  31. package/directives/value-changes/value-changes.directive.d.ts +2 -2
  32. package/directives/with-styles/index.d.ts +1 -0
  33. package/directives/with-styles/with-styles.directive.d.ts +10 -0
  34. package/fesm2022/taiga-ui-cdk-classes.mjs +9 -93
  35. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-cdk-constants.mjs +17 -29
  37. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-cdk-date-time.mjs +36 -25
  39. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +28 -37
  41. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +39 -85
  43. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +13 -15
  45. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
  47. package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +8 -11
  49. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-cdk-directives-element.mjs +5 -6
  51. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +13 -24
  53. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
  55. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
  57. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +12 -15
  59. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
  61. package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-cdk-directives-media.mjs +33 -58
  63. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +9 -11
  65. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +14 -20
  67. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +11 -13
  69. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
  71. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
  73. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +11 -13
  75. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +9 -16
  77. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -5
  79. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
  81. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +5 -5
  83. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +29 -0
  85. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs.map +1 -0
  86. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +9 -9
  87. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-cdk-directives.mjs +1 -6
  89. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-cdk-observables.mjs +10 -28
  91. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
  93. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
  95. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -5
  97. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
  99. package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-cdk-portals.mjs +126 -0
  101. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -0
  102. package/fesm2022/taiga-ui-cdk-tokens.mjs +20 -52
  103. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +3 -26
  105. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-cdk-utils-di.mjs +46 -6
  107. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +16 -96
  109. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +27 -44
  111. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
  113. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +47 -114
  115. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
  117. package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-cdk.mjs +1 -1
  119. package/index.d.ts +1 -1
  120. package/observables/index.d.ts +0 -2
  121. package/package.json +37 -195
  122. package/pipes/index.d.ts +0 -6
  123. package/pipes/obfuscate/obfuscate.options.d.ts +2 -2
  124. package/portals/directive.d.ts +11 -0
  125. package/portals/index.d.ts +4 -0
  126. package/portals/portal.d.ts +24 -0
  127. package/portals/portals.d.ts +12 -0
  128. package/portals/service.d.ts +15 -0
  129. package/schematics/collection.json +2 -1
  130. package/schematics/constants/file-globs.js +1 -1
  131. package/schematics/constants/file-globs.js.map +1 -1
  132. package/schematics/index.d.ts +1 -0
  133. package/schematics/index.js +1 -0
  134. package/schematics/index.js.map +1 -1
  135. package/schematics/migrate-tui-let/index.js +5 -4
  136. package/schematics/migrate-tui-let/index.js.map +1 -1
  137. package/schematics/migrate-tui-let/schema.json +7 -0
  138. package/schematics/ng-add/constants/versions.d.ts +1 -1
  139. package/schematics/ng-add/index.js +1 -2
  140. package/schematics/ng-add/index.js.map +1 -1
  141. package/schematics/ng-add/setup-project.js +1 -1
  142. package/schematics/ng-add/setup-project.js.map +1 -1
  143. package/schematics/ng-add/steps/add-taiga-icons.js +2 -3
  144. package/schematics/ng-add/steps/add-taiga-icons.js.map +1 -1
  145. package/schematics/ng-add/steps/add-taiga-modules.js +1 -17
  146. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  147. package/schematics/ng-add/steps/add-taiga-styles.js +1 -2
  148. package/schematics/ng-add/steps/add-taiga-styles.js.map +1 -1
  149. package/schematics/ng-add/steps/wrap-with-tui-root.js +1 -2
  150. package/schematics/ng-add/steps/wrap-with-tui-root.js.map +1 -1
  151. package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
  152. package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
  153. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
  154. package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
  155. package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
  156. package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
  157. package/schematics/ng-update/steps/icons/replace-imports.js +1 -2
  158. package/schematics/ng-update/steps/icons/replace-imports.js.map +1 -1
  159. package/schematics/ng-update/steps/rename-types.js +1 -2
  160. package/schematics/ng-update/steps/rename-types.js.map +1 -1
  161. package/schematics/ng-update/steps/replace-deep-import.js +1 -2
  162. package/schematics/ng-update/steps/replace-deep-import.js.map +1 -1
  163. package/schematics/ng-update/steps/replace-enums.js +1 -2
  164. package/schematics/ng-update/steps/replace-enums.js.map +1 -1
  165. package/schematics/ng-update/steps/replace-identifier.js +2 -3
  166. package/schematics/ng-update/steps/replace-identifier.js.map +1 -1
  167. package/schematics/ng-update/steps/replace-package-name.js +1 -2
  168. package/schematics/ng-update/steps/replace-package-name.js.map +1 -1
  169. package/schematics/ng-update/steps/replace-services.js +1 -2
  170. package/schematics/ng-update/steps/replace-services.js.map +1 -1
  171. package/schematics/ng-update/steps/show-warnings.js +1 -2
  172. package/schematics/ng-update/steps/show-warnings.js.map +1 -1
  173. package/schematics/ng-update/utils/get-file-system.js +1 -2
  174. package/schematics/ng-update/utils/get-file-system.js.map +1 -1
  175. package/schematics/ng-update/{v4/steps → utils}/replace-functions.d.ts +1 -1
  176. package/schematics/ng-update/{v4/steps → utils}/replace-functions.js +2 -3
  177. package/schematics/ng-update/utils/replace-functions.js.map +1 -0
  178. package/schematics/ng-update/utils/replace-text.js +1 -2
  179. package/schematics/ng-update/utils/replace-text.js.map +1 -1
  180. package/schematics/ng-update/utils/templates/remove-inputs.js +1 -2
  181. package/schematics/ng-update/utils/templates/remove-inputs.js.map +1 -1
  182. package/schematics/ng-update/utils/templates/replace-attr-values.js +1 -2
  183. package/schematics/ng-update/utils/templates/replace-attr-values.js.map +1 -1
  184. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js +1 -2
  185. package/schematics/ng-update/utils/templates/replace-attrs-by-directives.js.map +1 -1
  186. package/schematics/ng-update/utils/templates/replace-attrs.js +1 -2
  187. package/schematics/ng-update/utils/templates/replace-attrs.js.map +1 -1
  188. package/schematics/ng-update/utils/templates/replace-tag.js +1 -2
  189. package/schematics/ng-update/utils/templates/replace-tag.js.map +1 -1
  190. package/schematics/ng-update/utils/templates/replace-tags.js +1 -2
  191. package/schematics/ng-update/utils/templates/replace-tags.js.map +1 -1
  192. package/schematics/ng-update/utils/templates/template-comments.js +1 -2
  193. package/schematics/ng-update/utils/templates/template-comments.js.map +1 -1
  194. package/schematics/ng-update/v4/index.js +2 -3
  195. package/schematics/ng-update/v4/index.js.map +1 -1
  196. package/schematics/ng-update/v4/migrate-addon-doc/index.js +1 -2
  197. package/schematics/ng-update/v4/migrate-addon-doc/index.js.map +1 -1
  198. package/schematics/ng-update/v4/migrate-css-vars/index.js +1 -2
  199. package/schematics/ng-update/v4/migrate-css-vars/index.js.map +1 -1
  200. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
  201. package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
  202. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
  203. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.d.ts +0 -1
  204. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js +2 -3
  205. package/schematics/ng-update/v4/migrate-css-vars/rename-css-vars.js.map +1 -1
  206. package/schematics/ng-update/v4/migrate-icons/index.js +1 -2
  207. package/schematics/ng-update/v4/migrate-icons/index.js.map +1 -1
  208. package/schematics/ng-update/v4/migrate-icons/rename-icons.d.ts +0 -1
  209. package/schematics/ng-update/v4/migrate-icons/rename-icons.js +1 -2
  210. package/schematics/ng-update/v4/migrate-icons/rename-icons.js.map +1 -1
  211. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.d.ts +0 -1
  212. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js +1 -2
  213. package/schematics/ng-update/v4/migrate-icons/rename-proprietary-icons.js.map +1 -1
  214. package/schematics/ng-update/v4/steps/constants/migration-warnings.js +1 -1
  215. package/schematics/ng-update/v4/steps/constants/migration-warnings.js.map +1 -1
  216. package/schematics/ng-update/v4/steps/drop-universal-mock.js +1 -2
  217. package/schematics/ng-update/v4/steps/drop-universal-mock.js.map +1 -1
  218. package/schematics/ng-update/v4/steps/migrate-alert-service.js +1 -2
  219. package/schematics/ng-update/v4/steps/migrate-alert-service.js.map +1 -1
  220. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js +1 -2
  221. package/schematics/ng-update/v4/steps/migrate-all-country-iso-codes.js.map +1 -1
  222. package/schematics/ng-update/v4/steps/migrate-destroy-service.js +1 -2
  223. package/schematics/ng-update/v4/steps/migrate-destroy-service.js.map +1 -1
  224. package/schematics/ng-update/v4/steps/migrate-editor.d.ts +0 -1
  225. package/schematics/ng-update/v4/steps/migrate-editor.js +2 -2
  226. package/schematics/ng-update/v4/steps/migrate-editor.js.map +1 -1
  227. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js +1 -2
  228. package/schematics/ng-update/v4/steps/migrate-legacy-mask.js.map +1 -1
  229. package/schematics/ng-update/v4/steps/migrate-month-context.js +1 -2
  230. package/schematics/ng-update/v4/steps/migrate-month-context.js.map +1 -1
  231. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js +1 -2
  232. package/schematics/ng-update/v4/steps/migrate-number-format-settings.js.map +1 -1
  233. package/schematics/ng-update/v4/steps/migrate-option-providers.js +1 -2
  234. package/schematics/ng-update/v4/steps/migrate-option-providers.js.map +1 -1
  235. package/schematics/ng-update/v4/steps/migrate-proprietary.d.ts +0 -1
  236. package/schematics/ng-update/v4/steps/migrate-proprietary.js +2 -3
  237. package/schematics/ng-update/v4/steps/migrate-proprietary.js.map +1 -1
  238. package/schematics/ng-update/v4/steps/migrate-providers-from.js +1 -2
  239. package/schematics/ng-update/v4/steps/migrate-providers-from.js.map +1 -1
  240. package/schematics/ng-update/v4/steps/migrate-root.js +1 -2
  241. package/schematics/ng-update/v4/steps/migrate-root.js.map +1 -1
  242. package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
  243. package/schematics/ng-update/v4/steps/migrate-templates.js +2 -3
  244. package/schematics/ng-update/v4/steps/migrate-templates.js.map +1 -1
  245. package/schematics/ng-update/v4/steps/remove-duplicates.js +1 -2
  246. package/schematics/ng-update/v4/steps/remove-duplicates.js.map +1 -1
  247. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +2 -3
  248. package/schematics/ng-update/v4/steps/restore-tui-mapper.js.map +1 -1
  249. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +2 -3
  250. package/schematics/ng-update/v4/steps/restore-tui-matcher.js.map +1 -1
  251. package/schematics/ng-update/v4/steps/styles/index.d.ts +0 -1
  252. package/schematics/ng-update/v4/steps/styles/index.js +2 -2
  253. package/schematics/ng-update/v4/steps/styles/index.js.map +1 -1
  254. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js +1 -2
  255. package/schematics/ng-update/v4/steps/styles/migrate-legacy-mixins.js.map +1 -1
  256. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js +1 -2
  257. package/schematics/ng-update/v4/steps/styles/migrate-less-scss-constants.js.map +1 -1
  258. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js +1 -2
  259. package/schematics/ng-update/v4/steps/styles/migrate-mixins.js.map +1 -1
  260. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js +1 -2
  261. package/schematics/ng-update/v4/steps/styles/migrate-shadow-mixins.js.map +1 -1
  262. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js +2 -3
  263. package/schematics/ng-update/v4/steps/styles/migrate-space-mixins.js.map +1 -1
  264. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +14 -15
  265. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  266. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js +1 -2
  267. package/schematics/ng-update/v4/steps/templates/dropdown-ref-comment.js.map +1 -1
  268. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js +1 -2
  269. package/schematics/ng-update/v4/steps/templates/migrate-active-zone.js.map +1 -1
  270. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js +1 -2
  271. package/schematics/ng-update/v4/steps/templates/migrate-avatar.js.map +1 -1
  272. package/schematics/ng-update/v4/steps/templates/migrate-axes.js +1 -2
  273. package/schematics/ng-update/v4/steps/templates/migrate-axes.js.map +1 -1
  274. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +1 -2
  275. package/schematics/ng-update/v4/steps/templates/migrate-badge.js.map +1 -1
  276. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js +1 -2
  277. package/schematics/ng-update/v4/steps/templates/migrate-badged-content.js.map +1 -1
  278. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js +1 -2
  279. package/schematics/ng-update/v4/steps/templates/migrate-blocked.js.map +1 -1
  280. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js +1 -2
  281. package/schematics/ng-update/v4/steps/templates/migrate-button-appearance.js.map +1 -1
  282. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js +1 -2
  283. package/schematics/ng-update/v4/steps/templates/migrate-expandable.js.map +1 -1
  284. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js +1 -2
  285. package/schematics/ng-update/v4/steps/templates/migrate-filter-pipe.js.map +1 -1
  286. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js +1 -2
  287. package/schematics/ng-update/v4/steps/templates/migrate-focusable.js.map +1 -1
  288. package/schematics/ng-update/v4/steps/templates/migrate-label.js +1 -2
  289. package/schematics/ng-update/v4/steps/templates/migrate-label.js.map +1 -1
  290. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js +1 -2
  291. package/schematics/ng-update/v4/steps/templates/migrate-labeled.js.map +1 -1
  292. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js +1 -2
  293. package/schematics/ng-update/v4/steps/templates/migrate-mobile-tabs.js.map +1 -1
  294. package/schematics/ng-update/v4/steps/templates/migrate-money.js +1 -2
  295. package/schematics/ng-update/v4/steps/templates/migrate-money.js.map +1 -1
  296. package/schematics/ng-update/v4/steps/templates/migrate-notification.js +1 -2
  297. package/schematics/ng-update/v4/steps/templates/migrate-notification.js.map +1 -1
  298. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js +1 -2
  299. package/schematics/ng-update/v4/steps/templates/migrate-number-precision.js.map +1 -1
  300. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js +1 -2
  301. package/schematics/ng-update/v4/steps/templates/migrate-overscroll.js.map +1 -1
  302. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js +1 -2
  303. package/schematics/ng-update/v4/steps/templates/migrate-prevent-default.js.map +1 -1
  304. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js +1 -2
  305. package/schematics/ng-update/v4/steps/templates/migrate-progress-segmented.js.map +1 -1
  306. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js +1 -2
  307. package/schematics/ng-update/v4/steps/templates/migrate-thumbnail-card.js.map +1 -1
  308. package/schematics/ng-update/v4/steps/templates/toggles/common.js +4 -5
  309. package/schematics/ng-update/v4/steps/templates/toggles/common.js.map +1 -1
  310. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js +1 -2
  311. package/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.js.map +1 -1
  312. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js +1 -2
  313. package/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.js.map +1 -1
  314. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js +1 -2
  315. package/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.js.map +1 -1
  316. package/schematics/ng-update/v4/steps/update-packages.d.ts +0 -1
  317. package/schematics/ng-update/v4/steps/update-packages.js +2 -2
  318. package/schematics/ng-update/v4/steps/update-packages.js.map +1 -1
  319. package/schematics/ng-update/v4/steps/utils/clean-object.js +1 -2
  320. package/schematics/ng-update/v4/steps/utils/clean-object.js.map +1 -1
  321. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js +1 -2
  322. package/schematics/ng-update/v4/steps/utils/normalize-attr-value.js.map +1 -1
  323. package/schematics/ng-update/v4/steps/utils/remove-attrs.js +1 -2
  324. package/schematics/ng-update/v4/steps/utils/remove-attrs.js.map +1 -1
  325. package/schematics/ng-update/v4/steps/utils/replace-modules-with-providers.js.map +1 -1
  326. package/schematics/ng-update/v4/steps/utils/replace-substrings.js +1 -2
  327. package/schematics/ng-update/v4/steps/utils/replace-substrings.js.map +1 -1
  328. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js +1 -2
  329. package/schematics/ng-update/v4/tests/migrate-destroy-service/utils.js.map +1 -1
  330. package/schematics/ng-update/v5/index.js +15 -2
  331. package/schematics/ng-update/v5/index.js.map +1 -1
  332. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
  333. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +22 -0
  334. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
  335. package/schematics/ng-update/v5/steps/constants/functions.d.ts +2 -0
  336. package/schematics/ng-update/v5/steps/constants/functions.js +67 -0
  337. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -0
  338. package/schematics/ng-update/v5/steps/constants/html-comments.d.ts +2 -0
  339. package/schematics/ng-update/v5/steps/constants/html-comments.js +11 -0
  340. package/schematics/ng-update/v5/steps/constants/html-comments.js.map +1 -0
  341. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.d.ts +2 -0
  342. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js +22 -0
  343. package/schematics/ng-update/v5/steps/constants/identifiers-to-replace.js.map +1 -0
  344. package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
  345. package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
  346. package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
  347. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +17 -0
  348. package/schematics/ng-update/v5/steps/migrate-templates.js +48 -0
  349. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -0
  350. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js +1 -2
  351. package/schematics/ng-update/v5/steps/migrate-tokens/migrate-tokens.js.map +1 -1
  352. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js +1 -2
  353. package/schematics/ng-update/v5/steps/migrate-tokens/update-tsconfig.js.map +1 -1
  354. package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
  355. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
  356. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
  357. package/schematics/ng-update/v5/steps/templates/migrate-input-year.d.ts +8 -0
  358. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js +52 -0
  359. package/schematics/ng-update/v5/steps/templates/migrate-input-year.js.map +1 -0
  360. package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
  361. package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
  362. package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
  363. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js +1 -2
  364. package/schematics/ng-update/v5/tests/migrate-tokens/utils.js.map +1 -1
  365. package/schematics/utils/add-import-to-closest-module.js +2 -3
  366. package/schematics/utils/add-import-to-closest-module.js.map +1 -1
  367. package/schematics/utils/add-unique-import.js +1 -2
  368. package/schematics/utils/add-unique-import.js.map +1 -1
  369. package/schematics/utils/angular-json-manipulations.js +2 -5
  370. package/schematics/utils/angular-json-manipulations.js.map +1 -1
  371. package/schematics/utils/create-angular-json.js +1 -2
  372. package/schematics/utils/create-angular-json.js.map +1 -1
  373. package/schematics/utils/get-component-from-identifier.js +1 -2
  374. package/schematics/utils/get-component-from-identifier.js.map +1 -1
  375. package/schematics/utils/get-execution-time.js +1 -2
  376. package/schematics/utils/get-execution-time.js.map +1 -1
  377. package/schematics/utils/get-named-import-references.js +1 -2
  378. package/schematics/utils/get-named-import-references.js.map +1 -1
  379. package/schematics/utils/get-project-target-options.js +1 -2
  380. package/schematics/utils/get-project-target-options.js.map +1 -1
  381. package/schematics/utils/get-projects.js +1 -2
  382. package/schematics/utils/get-projects.js.map +1 -1
  383. package/schematics/utils/get-standalone-bootstrap-function.d.ts +1 -1
  384. package/schematics/utils/get-standalone-bootstrap-function.js +2 -5
  385. package/schematics/utils/get-standalone-bootstrap-function.js.map +1 -1
  386. package/schematics/utils/import-manipulations.js +2 -3
  387. package/schematics/utils/import-manipulations.js.map +1 -1
  388. package/schematics/utils/insert-todo.js +2 -2
  389. package/schematics/utils/insert-todo.js.map +1 -1
  390. package/schematics/utils/is-ci.js +1 -2
  391. package/schematics/utils/is-ci.js.map +1 -1
  392. package/schematics/utils/make-angular-json-with-assets.js +1 -2
  393. package/schematics/utils/make-angular-json-with-assets.js.map +1 -1
  394. package/schematics/utils/progress.js +1 -2
  395. package/schematics/utils/progress.js.map +1 -1
  396. package/schematics/utils/push-to-array-property.js +1 -2
  397. package/schematics/utils/push-to-array-property.js.map +1 -1
  398. package/schematics/utils/remove-module.js +2 -3
  399. package/schematics/utils/remove-module.js.map +1 -1
  400. package/schematics/utils/run-migration.d.ts +14 -0
  401. package/schematics/utils/run-migration.js +27 -0
  402. package/schematics/utils/run-migration.js.map +1 -0
  403. package/schematics/utils/templates/elements.d.ts +4 -1
  404. package/schematics/utils/templates/elements.js +15 -24
  405. package/schematics/utils/templates/elements.js.map +1 -1
  406. package/schematics/utils/templates/get-component-templates.js +1 -2
  407. package/schematics/utils/templates/get-component-templates.js.map +1 -1
  408. package/schematics/utils/templates/inputs.js +2 -3
  409. package/schematics/utils/templates/inputs.js.map +1 -1
  410. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
  411. package/schematics/utils/templates/ng-component-input-manipulations.js +6 -9
  412. package/schematics/utils/templates/ng-component-input-manipulations.js.map +1 -1
  413. package/schematics/utils/templates/template-resource.js +3 -4
  414. package/schematics/utils/templates/template-resource.js.map +1 -1
  415. package/tokens/environment.d.ts +5 -13
  416. package/tokens/index.d.ts +0 -2
  417. package/tokens/removed-element.d.ts +0 -3
  418. package/types/index.d.ts +0 -2
  419. package/utils/browser/index.d.ts +0 -2
  420. package/utils/di/create-options.d.ts +2 -2
  421. package/utils/di/index.d.ts +3 -0
  422. package/utils/di/provide-options.d.ts +2 -0
  423. package/utils/dom/get-element-obscurers.d.ts +1 -1
  424. package/utils/dom/index.d.ts +0 -6
  425. package/utils/focus/get-closest-focusable.d.ts +1 -6
  426. package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +1 -1
  427. package/utils/focus/index.d.ts +4 -6
  428. package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
  429. package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +1 -1
  430. package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +1 -1
  431. package/utils/index.d.ts +0 -1
  432. package/utils/math/index.d.ts +0 -2
  433. package/utils/miscellaneous/generate-id.d.ts +1 -0
  434. package/utils/miscellaneous/index.d.ts +3 -11
  435. package/utils/miscellaneous/is-string.js +1 -2
  436. package/utils/miscellaneous/is-string.js.map +1 -1
  437. package/utils/miscellaneous/sanitize-text.d.ts +23 -0
  438. package/utils/miscellaneous/set-signal.d.ts +2 -0
  439. package/classes/portals.d.ts +0 -33
  440. package/constants/allow-signal-writes.d.ts +0 -2
  441. package/directives/animated/animated-parent.directive.d.ts +0 -10
  442. package/directives/click-outside/click-outside.directive.d.ts +0 -14
  443. package/directives/click-outside/index.d.ts +0 -1
  444. package/directives/droppable/droppable.directive.d.ts +0 -8
  445. package/directives/droppable/index.d.ts +0 -1
  446. package/directives/for/for.directive.d.ts +0 -12
  447. package/directives/for/index.d.ts +0 -1
  448. package/directives/let/index.d.ts +0 -2
  449. package/directives/let/let-context.d.ts +0 -11
  450. package/directives/let/let.directive.d.ts +0 -19
  451. package/directives/popover/index.d.ts +0 -1
  452. package/directives/popover/popover.directive.d.ts +0 -14
  453. package/directives/repeat-times/index.d.ts +0 -1
  454. package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
  455. package/esm2022/classes/control.mjs +0 -96
  456. package/esm2022/classes/index.mjs +0 -5
  457. package/esm2022/classes/portals.mjs +0 -77
  458. package/esm2022/classes/taiga-ui-cdk-classes.mjs +0 -5
  459. package/esm2022/classes/validation-error.mjs +0 -7
  460. package/esm2022/classes/value-transformer.mjs +0 -25
  461. package/esm2022/constants/allow-signal-writes.mjs +0 -3
  462. package/esm2022/constants/empty.mjs +0 -25
  463. package/esm2022/constants/handlers.mjs +0 -11
  464. package/esm2022/constants/index.mjs +0 -10
  465. package/esm2022/constants/matchers.mjs +0 -26
  466. package/esm2022/constants/regexp.mjs +0 -4
  467. package/esm2022/constants/svg-node-filter.mjs +0 -8
  468. package/esm2022/constants/taiga-ui-cdk-constants.mjs +0 -5
  469. package/esm2022/constants/unicode-chars.mjs +0 -64
  470. package/esm2022/constants/used-icons.mjs +0 -76
  471. package/esm2022/constants/version.mjs +0 -2
  472. package/esm2022/date-time/date-clamp.mjs +0 -10
  473. package/esm2022/date-time/date-fillers.mjs +0 -15
  474. package/esm2022/date-time/date-time.mjs +0 -20
  475. package/esm2022/date-time/day-of-week.mjs +0 -10
  476. package/esm2022/date-time/day-range.mjs +0 -84
  477. package/esm2022/date-time/day.mjs +0 -294
  478. package/esm2022/date-time/days.const.mjs +0 -6
  479. package/esm2022/date-time/index.mjs +0 -13
  480. package/esm2022/date-time/month-number.mjs +0 -15
  481. package/esm2022/date-time/month-range.mjs +0 -27
  482. package/esm2022/date-time/month.mjs +0 -152
  483. package/esm2022/date-time/taiga-ui-cdk-date-time.mjs +0 -5
  484. package/esm2022/date-time/time.mjs +0 -161
  485. package/esm2022/date-time/types.mjs +0 -2
  486. package/esm2022/date-time/year.mjs +0 -111
  487. package/esm2022/directives/active-zone/active-zone.directive.mjs +0 -74
  488. package/esm2022/directives/active-zone/index.mjs +0 -2
  489. package/esm2022/directives/active-zone/taiga-ui-cdk-directives-active-zone.mjs +0 -5
  490. package/esm2022/directives/animated/animated-parent.directive.mjs +0 -39
  491. package/esm2022/directives/animated/animated.directive.mjs +0 -81
  492. package/esm2022/directives/animated/index.mjs +0 -3
  493. package/esm2022/directives/animated/taiga-ui-cdk-directives-animated.mjs +0 -5
  494. package/esm2022/directives/auto-focus/autofocus.directive.mjs +0 -46
  495. package/esm2022/directives/auto-focus/autofocus.options.mjs +0 -31
  496. package/esm2022/directives/auto-focus/handlers/abstract.handler.mjs +0 -17
  497. package/esm2022/directives/auto-focus/handlers/default.handler.mjs +0 -21
  498. package/esm2022/directives/auto-focus/handlers/ios.handler.mjs +0 -125
  499. package/esm2022/directives/auto-focus/handlers/sync.handler.mjs +0 -7
  500. package/esm2022/directives/auto-focus/index.mjs +0 -7
  501. package/esm2022/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.mjs +0 -5
  502. package/esm2022/directives/click-outside/click-outside.directive.mjs +0 -33
  503. package/esm2022/directives/click-outside/index.mjs +0 -2
  504. package/esm2022/directives/click-outside/taiga-ui-cdk-directives-click-outside.mjs +0 -5
  505. package/esm2022/directives/control/control.directive.mjs +0 -23
  506. package/esm2022/directives/control/index.mjs +0 -2
  507. package/esm2022/directives/control/taiga-ui-cdk-directives-control.mjs +0 -5
  508. package/esm2022/directives/copy-processor/copy-processor.directive.mjs +0 -33
  509. package/esm2022/directives/copy-processor/index.mjs +0 -2
  510. package/esm2022/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.mjs +0 -5
  511. package/esm2022/directives/droppable/droppable.directive.mjs +0 -31
  512. package/esm2022/directives/droppable/index.mjs +0 -2
  513. package/esm2022/directives/droppable/taiga-ui-cdk-directives-droppable.mjs +0 -5
  514. package/esm2022/directives/element/element.directive.mjs +0 -35
  515. package/esm2022/directives/element/index.mjs +0 -2
  516. package/esm2022/directives/element/taiga-ui-cdk-directives-element.mjs +0 -5
  517. package/esm2022/directives/focus-trap/focus-trap.directive.mjs +0 -67
  518. package/esm2022/directives/focus-trap/index.mjs +0 -2
  519. package/esm2022/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.mjs +0 -5
  520. package/esm2022/directives/font-size/font-size.directive.mjs +0 -27
  521. package/esm2022/directives/font-size/index.mjs +0 -2
  522. package/esm2022/directives/font-size/taiga-ui-cdk-directives-font-size.mjs +0 -5
  523. package/esm2022/directives/for/for.directive.mjs +0 -34
  524. package/esm2022/directives/for/index.mjs +0 -2
  525. package/esm2022/directives/for/taiga-ui-cdk-directives-for.mjs +0 -5
  526. package/esm2022/directives/high-dpi/high-dpi.directive.mjs +0 -23
  527. package/esm2022/directives/high-dpi/index.mjs +0 -2
  528. package/esm2022/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.mjs +0 -5
  529. package/esm2022/directives/hovered/hovered.directive.mjs +0 -22
  530. package/esm2022/directives/hovered/hovered.service.mjs +0 -35
  531. package/esm2022/directives/hovered/index.mjs +0 -3
  532. package/esm2022/directives/hovered/taiga-ui-cdk-directives-hovered.mjs +0 -5
  533. package/esm2022/directives/index.mjs +0 -30
  534. package/esm2022/directives/item/index.mjs +0 -2
  535. package/esm2022/directives/item/item.directive.mjs +0 -18
  536. package/esm2022/directives/item/taiga-ui-cdk-directives-item.mjs +0 -5
  537. package/esm2022/directives/let/index.mjs +0 -3
  538. package/esm2022/directives/let/let-context.mjs +0 -15
  539. package/esm2022/directives/let/let.directive.mjs +0 -34
  540. package/esm2022/directives/let/taiga-ui-cdk-directives-let.mjs +0 -5
  541. package/esm2022/directives/media/index.mjs +0 -2
  542. package/esm2022/directives/media/media.directive.mjs +0 -89
  543. package/esm2022/directives/media/taiga-ui-cdk-directives-media.mjs +0 -5
  544. package/esm2022/directives/native-validator/index.mjs +0 -2
  545. package/esm2022/directives/native-validator/native-validator.directive.mjs +0 -43
  546. package/esm2022/directives/native-validator/taiga-ui-cdk-directives-native-validator.mjs +0 -5
  547. package/esm2022/directives/obscured/index.mjs +0 -3
  548. package/esm2022/directives/obscured/obscured.directive.mjs +0 -36
  549. package/esm2022/directives/obscured/obscured.service.mjs +0 -24
  550. package/esm2022/directives/obscured/taiga-ui-cdk-directives-obscured.mjs +0 -5
  551. package/esm2022/directives/pan/index.mjs +0 -3
  552. package/esm2022/directives/pan/pan.directive.mjs +0 -22
  553. package/esm2022/directives/pan/pan.service.mjs +0 -28
  554. package/esm2022/directives/pan/taiga-ui-cdk-directives-pan.mjs +0 -5
  555. package/esm2022/directives/platform/index.mjs +0 -2
  556. package/esm2022/directives/platform/platform.directive.mjs +0 -35
  557. package/esm2022/directives/platform/taiga-ui-cdk-directives-platform.mjs +0 -5
  558. package/esm2022/directives/popover/index.mjs +0 -2
  559. package/esm2022/directives/popover/popover.directive.mjs +0 -26
  560. package/esm2022/directives/popover/taiga-ui-cdk-directives-popover.mjs +0 -5
  561. package/esm2022/directives/repeat-times/index.mjs +0 -2
  562. package/esm2022/directives/repeat-times/repeat-times.directive.mjs +0 -55
  563. package/esm2022/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.mjs +0 -5
  564. package/esm2022/directives/resizer/index.mjs +0 -3
  565. package/esm2022/directives/resizer/resizable.directive.mjs +0 -16
  566. package/esm2022/directives/resizer/resizer.directive.mjs +0 -83
  567. package/esm2022/directives/resizer/taiga-ui-cdk-directives-resizer.mjs +0 -5
  568. package/esm2022/directives/swipe/index.mjs +0 -4
  569. package/esm2022/directives/swipe/swipe.directive.mjs +0 -22
  570. package/esm2022/directives/swipe/swipe.options.mjs +0 -8
  571. package/esm2022/directives/swipe/swipe.service.mjs +0 -50
  572. package/esm2022/directives/swipe/swipe.types.mjs +0 -2
  573. package/esm2022/directives/swipe/taiga-ui-cdk-directives-swipe.mjs +0 -5
  574. package/esm2022/directives/taiga-ui-cdk-directives.mjs +0 -5
  575. package/esm2022/directives/transitioned/index.mjs +0 -2
  576. package/esm2022/directives/transitioned/taiga-ui-cdk-directives-transitioned.mjs +0 -5
  577. package/esm2022/directives/transitioned/transitioned.directive.mjs +0 -27
  578. package/esm2022/directives/validator/index.mjs +0 -2
  579. package/esm2022/directives/validator/taiga-ui-cdk-directives-validator.mjs +0 -5
  580. package/esm2022/directives/validator/validator.directive.mjs +0 -30
  581. package/esm2022/directives/value-changes/index.mjs +0 -2
  582. package/esm2022/directives/value-changes/taiga-ui-cdk-directives-value-changes.mjs +0 -5
  583. package/esm2022/directives/value-changes/value-changes.directive.mjs +0 -28
  584. package/esm2022/directives/visual-viewport/index.mjs +0 -2
  585. package/esm2022/directives/visual-viewport/taiga-ui-cdk-directives-visual-viewport.mjs +0 -5
  586. package/esm2022/directives/visual-viewport/visual-viewport.directive.mjs +0 -34
  587. package/esm2022/directives/zoom/index.mjs +0 -4
  588. package/esm2022/directives/zoom/taiga-ui-cdk-directives-zoom.mjs +0 -5
  589. package/esm2022/directives/zoom/zoom.directive.mjs +0 -24
  590. package/esm2022/directives/zoom/zoom.options.mjs +0 -10
  591. package/esm2022/directives/zoom/zoom.service.mjs +0 -46
  592. package/esm2022/directives/zoom/zoom.types.mjs +0 -2
  593. package/esm2022/index.mjs +0 -10
  594. package/esm2022/observables/close-watcher.mjs +0 -22
  595. package/esm2022/observables/control-value.mjs +0 -8
  596. package/esm2022/observables/drag-and-drop-from.mjs +0 -14
  597. package/esm2022/observables/events.mjs +0 -8
  598. package/esm2022/observables/if-map.mjs +0 -5
  599. package/esm2022/observables/index.mjs +0 -14
  600. package/esm2022/observables/must-be-present.mjs +0 -17
  601. package/esm2022/observables/query-list-observable.mjs +0 -9
  602. package/esm2022/observables/scroll-from.mjs +0 -10
  603. package/esm2022/observables/taiga-ui-cdk-observables.mjs +0 -5
  604. package/esm2022/observables/take-until-destroyed.mjs +0 -9
  605. package/esm2022/observables/typed-from-event.mjs +0 -9
  606. package/esm2022/observables/untracked-scheduler.mjs +0 -11
  607. package/esm2022/observables/watch.mjs +0 -6
  608. package/esm2022/observables/zone.mjs +0 -34
  609. package/esm2022/pipes/animation/animation.pipe.mjs +0 -27
  610. package/esm2022/pipes/animation/index.mjs +0 -2
  611. package/esm2022/pipes/animation/taiga-ui-cdk-pipes-animation.mjs +0 -5
  612. package/esm2022/pipes/filter/filter.pipe.mjs +0 -25
  613. package/esm2022/pipes/filter/index.mjs +0 -2
  614. package/esm2022/pipes/filter/taiga-ui-cdk-pipes-filter.mjs +0 -5
  615. package/esm2022/pipes/index.mjs +0 -10
  616. package/esm2022/pipes/is-present/index.mjs +0 -2
  617. package/esm2022/pipes/is-present/is-present.pipe.mjs +0 -19
  618. package/esm2022/pipes/is-present/taiga-ui-cdk-pipes-is-present.mjs +0 -5
  619. package/esm2022/pipes/keys/index.mjs +0 -2
  620. package/esm2022/pipes/keys/keys.pipe.mjs +0 -18
  621. package/esm2022/pipes/keys/taiga-ui-cdk-pipes-keys.mjs +0 -5
  622. package/esm2022/pipes/mapper/index.mjs +0 -2
  623. package/esm2022/pipes/mapper/mapper.pipe.mjs +0 -25
  624. package/esm2022/pipes/mapper/taiga-ui-cdk-pipes-mapper.mjs +0 -5
  625. package/esm2022/pipes/obfuscate/index.mjs +0 -3
  626. package/esm2022/pipes/obfuscate/obfuscate.options.mjs +0 -10
  627. package/esm2022/pipes/obfuscate/obfuscate.pipe.mjs +0 -44
  628. package/esm2022/pipes/obfuscate/taiga-ui-cdk-pipes-obfuscate.mjs +0 -5
  629. package/esm2022/pipes/repeat-times/index.mjs +0 -19
  630. package/esm2022/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.mjs +0 -5
  631. package/esm2022/pipes/replace/index.mjs +0 -2
  632. package/esm2022/pipes/replace/replace.pipe.mjs +0 -20
  633. package/esm2022/pipes/replace/taiga-ui-cdk-pipes-replace.mjs +0 -5
  634. package/esm2022/pipes/taiga-ui-cdk-pipes.mjs +0 -5
  635. package/esm2022/pipes/to-array/index.mjs +0 -2
  636. package/esm2022/pipes/to-array/taiga-ui-cdk-pipes-to-array.mjs +0 -5
  637. package/esm2022/pipes/to-array/to-array.pipe.mjs +0 -18
  638. package/esm2022/services/id.service.mjs +0 -21
  639. package/esm2022/services/index.mjs +0 -5
  640. package/esm2022/services/popover.service.mjs +0 -45
  641. package/esm2022/services/scroll.service.mjs +0 -58
  642. package/esm2022/services/taiga-ui-cdk-services.mjs +0 -5
  643. package/esm2022/services/theme-color.service.mjs +0 -33
  644. package/esm2022/taiga-ui-cdk.mjs +0 -5
  645. package/esm2022/tokens/active-element.mjs +0 -56
  646. package/esm2022/tokens/base-href.mjs +0 -6
  647. package/esm2022/tokens/environment.mjs +0 -64
  648. package/esm2022/tokens/fallback-value.mjs +0 -11
  649. package/esm2022/tokens/index.mjs +0 -8
  650. package/esm2022/tokens/range.mjs +0 -9
  651. package/esm2022/tokens/removed-element.mjs +0 -20
  652. package/esm2022/tokens/taiga-ui-cdk-tokens.mjs +0 -5
  653. package/esm2022/tokens/window-size.mjs +0 -28
  654. package/esm2022/types/context.mjs +0 -2
  655. package/esm2022/types/handler.mjs +0 -2
  656. package/esm2022/types/index.mjs +0 -2
  657. package/esm2022/types/loose-union.mjs +0 -2
  658. package/esm2022/types/mapper.mjs +0 -2
  659. package/esm2022/types/matcher.mjs +0 -2
  660. package/esm2022/types/rounding.mjs +0 -2
  661. package/esm2022/types/safe-html.mjs +0 -2
  662. package/esm2022/types/taiga-ui-cdk-types.mjs +0 -5
  663. package/esm2022/types/values-of.mjs +0 -2
  664. package/esm2022/utils/browser/index.mjs +0 -6
  665. package/esm2022/utils/browser/is-apple.mjs +0 -14
  666. package/esm2022/utils/browser/is-edge.mjs +0 -4
  667. package/esm2022/utils/browser/is-firefox.mjs +0 -4
  668. package/esm2022/utils/browser/is-ios.mjs +0 -7
  669. package/esm2022/utils/browser/is-safari.mjs +0 -12
  670. package/esm2022/utils/browser/taiga-ui-cdk-utils-browser.mjs +0 -5
  671. package/esm2022/utils/color/get-gradient-data.mjs +0 -6
  672. package/esm2022/utils/color/hex-to-rgb.mjs +0 -12
  673. package/esm2022/utils/color/hex-to-rgba.mjs +0 -29
  674. package/esm2022/utils/color/hsv-to-rgb.mjs +0 -11
  675. package/esm2022/utils/color/index.mjs +0 -10
  676. package/esm2022/utils/color/parse-color.mjs +0 -27
  677. package/esm2022/utils/color/parse-gradient.mjs +0 -70
  678. package/esm2022/utils/color/rgb-to-hex.mjs +0 -4
  679. package/esm2022/utils/color/rgb-to-hsv.mjs +0 -8
  680. package/esm2022/utils/color/rgba-to-hex.mjs +0 -23
  681. package/esm2022/utils/color/taiga-ui-cdk-utils-color.mjs +0 -5
  682. package/esm2022/utils/di/create-options.mjs +0 -10
  683. package/esm2022/utils/di/index.mjs +0 -3
  684. package/esm2022/utils/di/taiga-ui-cdk-utils-di.mjs +0 -5
  685. package/esm2022/utils/dom/contains-or-after.mjs +0 -10
  686. package/esm2022/utils/dom/element-checks.mjs +0 -20
  687. package/esm2022/utils/dom/event-checks.mjs +0 -4
  688. package/esm2022/utils/dom/get-actual-target.mjs +0 -7
  689. package/esm2022/utils/dom/get-clipboard-data-text.mjs +0 -11
  690. package/esm2022/utils/dom/get-document-or-shadow-root.mjs +0 -6
  691. package/esm2022/utils/dom/get-element-obscurers.mjs +0 -44
  692. package/esm2022/utils/dom/get-element-offset.mjs +0 -20
  693. package/esm2022/utils/dom/get-element-point.mjs +0 -6
  694. package/esm2022/utils/dom/get-selected-text.mjs +0 -15
  695. package/esm2022/utils/dom/index.mjs +0 -20
  696. package/esm2022/utils/dom/inject-element.mjs +0 -5
  697. package/esm2022/utils/dom/is-current-target.mjs +0 -4
  698. package/esm2022/utils/dom/is-element-editable.mjs +0 -6
  699. package/esm2022/utils/dom/is-inside-iframe.mjs +0 -7
  700. package/esm2022/utils/dom/is-node-in.mjs +0 -14
  701. package/esm2022/utils/dom/point-to-client-rect.mjs +0 -17
  702. package/esm2022/utils/dom/retarget-boundary-crossing.mjs +0 -16
  703. package/esm2022/utils/dom/taiga-ui-cdk-utils-dom.mjs +0 -5
  704. package/esm2022/utils/dom/value-binding.mjs +0 -29
  705. package/esm2022/utils/dom/value.mjs +0 -78
  706. package/esm2022/utils/focus/blur-native-focused.mjs +0 -12
  707. package/esm2022/utils/focus/focused-in.mjs +0 -8
  708. package/esm2022/utils/focus/get-closest-focusable.mjs +0 -26
  709. package/esm2022/utils/focus/get-native-focused.mjs +0 -16
  710. package/esm2022/utils/focus/index.mjs +0 -10
  711. package/esm2022/utils/focus/is-native-focused-in.mjs +0 -12
  712. package/esm2022/utils/focus/is-native-focused.mjs +0 -15
  713. package/esm2022/utils/focus/is-native-keyboard-focusable.mjs +0 -33
  714. package/esm2022/utils/focus/is-native-mouse-focusable.mjs +0 -7
  715. package/esm2022/utils/focus/move-focus.mjs +0 -19
  716. package/esm2022/utils/focus/taiga-ui-cdk-utils-focus.mjs +0 -5
  717. package/esm2022/utils/index.mjs +0 -8
  718. package/esm2022/utils/math/clamp.mjs +0 -16
  719. package/esm2022/utils/math/in-range.mjs +0 -9
  720. package/esm2022/utils/math/index.mjs +0 -11
  721. package/esm2022/utils/math/normalize-to-int-number.mjs +0 -22
  722. package/esm2022/utils/math/quantize.mjs +0 -15
  723. package/esm2022/utils/math/round-with.mjs +0 -14
  724. package/esm2022/utils/math/round.mjs +0 -42
  725. package/esm2022/utils/math/sum.mjs +0 -7
  726. package/esm2022/utils/math/taiga-ui-cdk-utils-math.mjs +0 -5
  727. package/esm2022/utils/math/to-int.mjs +0 -4
  728. package/esm2022/utils/math/to-integer.mjs +0 -4
  729. package/esm2022/utils/math/to-radians.mjs +0 -7
  730. package/esm2022/utils/miscellaneous/array-remove.mjs +0 -4
  731. package/esm2022/utils/miscellaneous/array-shallow-equals.mjs +0 -4
  732. package/esm2022/utils/miscellaneous/array-toggle.mjs +0 -8
  733. package/esm2022/utils/miscellaneous/change-date-separator.mjs +0 -3
  734. package/esm2022/utils/miscellaneous/count-filled-controls.mjs +0 -13
  735. package/esm2022/utils/miscellaneous/create-token.mjs +0 -16
  736. package/esm2022/utils/miscellaneous/default-sort.mjs +0 -11
  737. package/esm2022/utils/miscellaneous/directive-binding.mjs +0 -26
  738. package/esm2022/utils/miscellaneous/directive-listener.mjs +0 -8
  739. package/esm2022/utils/miscellaneous/distance-between-touches.mjs +0 -4
  740. package/esm2022/utils/miscellaneous/ease-in-out-quad.mjs +0 -7
  741. package/esm2022/utils/miscellaneous/flat-length.mjs +0 -9
  742. package/esm2022/utils/miscellaneous/font-size-watcher.mjs +0 -30
  743. package/esm2022/utils/miscellaneous/get-original-array-from-query-list.mjs +0 -15
  744. package/esm2022/utils/miscellaneous/index.mjs +0 -31
  745. package/esm2022/utils/miscellaneous/is-control-empty.mjs +0 -4
  746. package/esm2022/utils/miscellaneous/is-falsy.mjs +0 -4
  747. package/esm2022/utils/miscellaneous/is-number.mjs +0 -4
  748. package/esm2022/utils/miscellaneous/is-object.mjs +0 -4
  749. package/esm2022/utils/miscellaneous/is-present.mjs +0 -4
  750. package/esm2022/utils/miscellaneous/is-string.mjs +0 -4
  751. package/esm2022/utils/miscellaneous/is-valid-url.mjs +0 -13
  752. package/esm2022/utils/miscellaneous/mark-control-as-touched-and-validate.mjs +0 -16
  753. package/esm2022/utils/miscellaneous/nullable-same.mjs +0 -18
  754. package/esm2022/utils/miscellaneous/obfuscate.mjs +0 -53
  755. package/esm2022/utils/miscellaneous/provide-options.mjs +0 -14
  756. package/esm2022/utils/miscellaneous/provide.mjs +0 -4
  757. package/esm2022/utils/miscellaneous/pure.mjs +0 -83
  758. package/esm2022/utils/miscellaneous/px.mjs +0 -9
  759. package/esm2022/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.mjs +0 -5
  760. package/esm2022/utils/miscellaneous/uniq-by.mjs +0 -6
  761. package/esm2022/utils/miscellaneous/with-styles.mjs +0 -17
  762. package/esm2022/utils/taiga-ui-cdk-utils.mjs +0 -5
  763. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
  764. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
  765. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
  766. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
  767. package/fesm2022/taiga-ui-cdk-directives-for.mjs +0 -40
  768. package/fesm2022/taiga-ui-cdk-directives-for.mjs.map +0 -1
  769. package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -54
  770. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
  771. package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
  772. package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
  773. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
  774. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
  775. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
  776. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
  777. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
  778. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
  779. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
  780. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
  781. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
  782. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
  783. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
  784. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
  785. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
  786. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
  787. package/fesm2022/taiga-ui-cdk-services.mjs +0 -152
  788. package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
  789. package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
  790. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
  791. package/observables/must-be-present.d.ts +0 -5
  792. package/observables/query-list-observable.d.ts +0 -6
  793. package/pipes/animation/animation.pipe.d.ts +0 -13
  794. package/pipes/animation/index.d.ts +0 -1
  795. package/pipes/is-present/index.d.ts +0 -1
  796. package/pipes/is-present/is-present.pipe.d.ts +0 -7
  797. package/pipes/keys/index.d.ts +0 -1
  798. package/pipes/keys/keys.pipe.d.ts +0 -7
  799. package/pipes/repeat-times/index.d.ts +0 -7
  800. package/pipes/replace/index.d.ts +0 -1
  801. package/pipes/replace/replace.pipe.d.ts +0 -7
  802. package/pipes/to-array/index.d.ts +0 -1
  803. package/pipes/to-array/to-array.pipe.d.ts +0 -7
  804. package/schematics/ng-update/v4/steps/replace-functions.js.map +0 -1
  805. package/services/id.service.d.ts +0 -8
  806. package/services/index.d.ts +0 -4
  807. package/services/popover.service.d.ts +0 -25
  808. package/services/scroll.service.d.ts +0 -13
  809. package/services/theme-color.service.d.ts +0 -18
  810. package/tokens/base-href.d.ts +0 -2
  811. package/tokens/range.d.ts +0 -5
  812. package/types/safe-html.d.ts +0 -2
  813. package/types/values-of.d.ts +0 -1
  814. package/utils/browser/is-apple.d.ts +0 -11
  815. package/utils/browser/is-ios.d.ts +0 -6
  816. package/utils/color/get-gradient-data.d.ts +0 -1
  817. package/utils/color/hex-to-rgb.d.ts +0 -1
  818. package/utils/color/hex-to-rgba.d.ts +0 -3
  819. package/utils/color/hsv-to-rgb.d.ts +0 -4
  820. package/utils/color/index.d.ts +0 -9
  821. package/utils/color/parse-color.d.ts +0 -1
  822. package/utils/color/parse-gradient.d.ts +0 -10
  823. package/utils/color/rgb-to-hex.d.ts +0 -1
  824. package/utils/color/rgb-to-hsv.d.ts +0 -1
  825. package/utils/color/rgba-to-hex.d.ts +0 -2
  826. package/utils/dom/get-element-point.d.ts +0 -2
  827. package/utils/dom/is-current-target.d.ts +0 -1
  828. package/utils/dom/is-inside-iframe.d.ts +0 -4
  829. package/utils/dom/is-node-in.d.ts +0 -8
  830. package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
  831. package/utils/dom/value-binding.d.ts +0 -3
  832. package/utils/focus/blur-native-focused.d.ts +0 -4
  833. package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
  834. package/utils/math/to-integer.d.ts +0 -1
  835. package/utils/math/to-radians.d.ts +0 -4
  836. package/utils/miscellaneous/change-date-separator.d.ts +0 -1
  837. package/utils/miscellaneous/create-token.d.ts +0 -9
  838. package/utils/miscellaneous/directive-listener.d.ts +0 -9
  839. package/utils/miscellaneous/flat-length.d.ts +0 -6
  840. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
  841. package/utils/miscellaneous/is-falsy.d.ts +0 -1
  842. package/utils/miscellaneous/is-valid-url.d.ts +0 -4
  843. package/utils/miscellaneous/provide-options.d.ts +0 -2
  844. package/utils/miscellaneous/uniq-by.d.ts +0 -1
  845. /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
  846. /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
@@ -126,20 +126,9 @@ function tuiToInt(bool) {
126
126
  return bool ? 1 : 0;
127
127
  }
128
128
 
129
- function tuiToInteger(value) {
130
- return parseInt(value, 10);
131
- }
132
-
133
- /**
134
- * Converts angle in degrees to radians
135
- */
136
- function tuiToRadians(deg) {
137
- return (deg * Math.PI) / 180;
138
- }
139
-
140
129
  /**
141
130
  * Generated bundle index. Do not edit.
142
131
  */
143
132
 
144
- export { tuiCeil, tuiClamp, tuiFloor, tuiInRange, tuiIsSafeToRound, tuiNormalizeToIntNumber, tuiQuantize, tuiRound, tuiRoundWith, tuiSum, tuiToInt, tuiToInteger, tuiToRadians, tuiTrunc };
133
+ export { tuiCeil, tuiClamp, tuiFloor, tuiInRange, tuiIsSafeToRound, tuiNormalizeToIntNumber, tuiQuantize, tuiRound, tuiRoundWith, tuiSum, tuiToInt, tuiTrunc };
145
134
  //# sourceMappingURL=taiga-ui-cdk-utils-math.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-math.mjs","sources":["../../../projects/cdk/utils/math/clamp.ts","../../../projects/cdk/utils/math/in-range.ts","../../../projects/cdk/utils/math/normalize-to-int-number.ts","../../../projects/cdk/utils/math/quantize.ts","../../../projects/cdk/utils/math/round.ts","../../../projects/cdk/utils/math/round-with.ts","../../../projects/cdk/utils/math/sum.ts","../../../projects/cdk/utils/math/to-int.ts","../../../projects/cdk/utils/math/to-integer.ts","../../../projects/cdk/utils/math/to-radians.ts","../../../projects/cdk/utils/math/taiga-ui-cdk-utils-math.ts"],"sourcesContent":["/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Clamps a value between two inclusive limits\n *\n * @param value\n * @param min lower limit\n * @param max upper limit\n */\nexport function tuiClamp(value: number, min: number, max: number): number {\n ngDevMode && console.assert(!Number.isNaN(value));\n ngDevMode && console.assert(!Number.isNaN(min));\n ngDevMode && console.assert(!Number.isNaN(max));\n ngDevMode && console.assert(max >= min);\n\n return Math.min(max, Math.max(min, value));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nexport function tuiInRange(\n value: number,\n fromInclude: number,\n toExclude: number,\n): boolean {\n ngDevMode && console.assert(!Number.isNaN(value));\n ngDevMode && console.assert(!Number.isNaN(fromInclude));\n ngDevMode && console.assert(!Number.isNaN(toExclude));\n ngDevMode && console.assert(fromInclude < toExclude);\n\n return value >= fromInclude && value < toExclude;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Normalizes any number to an integer within inclusive range\n *\n * @param value\n * @param min lower inclusive integer\n * @param max upper inclusive integer\n * @return an integer between min and max inclusive\n */\nexport function tuiNormalizeToIntNumber(value: number, min: number, max: number): number {\n ngDevMode && console.assert(Number.isInteger(min));\n ngDevMode && console.assert(Number.isInteger(max));\n ngDevMode && console.assert(min <= max);\n\n if (Number.isNaN(value) || value <= min) {\n return min;\n }\n\n if (value >= max) {\n return max;\n }\n\n return Math.round(value);\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Rounds a number to the closest value in a fixed discrete series\n *\n * @param value\n * @param quantum series step\n */\nexport function tuiQuantize(value: number, quantum: number): number {\n ngDevMode && console.assert(Number.isFinite(value));\n ngDevMode && console.assert(Number.isFinite(quantum));\n ngDevMode && console.assert(quantum > 0);\n\n const remainder = value % quantum;\n\n return remainder < quantum / 2 ? value - remainder : value + quantum - remainder;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nconst MAX_PRECISION = 292;\n\n/**\n * Rounding number to the set precision\n *\n * @param value\n * @param precision number of digits in a float part\n * @param func rounding function (round, floor, ceil)\n */\nfunction calculate(\n value: number,\n precision: number,\n func: (x: number) => number,\n): number {\n if (value === Infinity) {\n return value;\n }\n\n ngDevMode && console.assert(!Number.isNaN(value), 'Value must be number');\n ngDevMode && console.assert(Number.isInteger(precision), 'Precision must be integer');\n\n precision = Math.min(precision, MAX_PRECISION);\n\n const [significand, exponent = ''] = `${value}`.split('e');\n const roundedInt = func(Number(`${significand}e${Number(exponent) + precision}`));\n\n /**\n * TODO: use BigInt after bumping Safari to 14+\n */\n ngDevMode &&\n console.assert(\n Number.isSafeInteger(roundedInt),\n 'Impossible to correctly round such a large number',\n );\n\n const processedPair = `${roundedInt}e`.split('e');\n\n return Number(`${processedPair[0]}e${Number(processedPair[1]) - precision}`);\n}\n\nexport function tuiRound(value: number, precision = 0): number {\n return calculate(value, precision, Math.round);\n}\n\nexport function tuiCeil(value: number, precision = 0): number {\n return calculate(value, precision, Math.ceil);\n}\n\nexport function tuiFloor(value: number, precision = 0): number {\n return calculate(value, precision, Math.floor);\n}\n\nexport function tuiTrunc(value: number, precision = 0): number {\n return calculate(value, precision, Math.trunc);\n}\n\nexport function tuiIsSafeToRound(value: number, precision = 0): boolean {\n return Number.isSafeInteger(Math.trunc(value * 10 ** precision));\n}\n","import {type TuiRounding} from '@taiga-ui/cdk/types';\n\nimport {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round';\n\nexport function tuiRoundWith({\n value,\n precision,\n method,\n}: {\n method: TuiRounding;\n precision: number;\n value: number;\n}): number {\n switch (method) {\n case 'ceil':\n return tuiCeil(value, precision);\n case 'floor':\n return tuiFloor(value, precision);\n case 'round':\n return tuiRound(value, precision);\n default:\n return tuiTrunc(value, precision);\n }\n}\n","/**\n * Calculates sum of any number of passed arguments\n */\nexport function tuiSum(...args: number[]): number {\n return args.reduce((a, b) => a + b, 0);\n}\n","export function tuiToInt(bool: boolean): 0 | 1 {\n return bool ? 1 : 0;\n}\n","export function tuiToInteger(value: number | string): number {\n return parseInt(value as unknown as string, 10);\n}\n","/**\n * Converts angle in degrees to radians\n */\nexport function tuiToRadians(deg: number): number {\n return (deg * Math.PI) / 180;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;AAEA;;;;;;AAMG;SACa,QAAQ,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAA;AAC5D,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAClD,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAChD,IAAA,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAChD,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;AAExC,IAAA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC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ACP,YAAA,OAAO,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACrC,QAAA,KAAK,OAAO;AACR,YAAA,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACtC,QAAA,KAAK,OAAO;AACR,YAAA,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACtC,QAAA;AACI,YAAA,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AACzC,KAAA;AACL;;ACvBA;;AAEG;AACa,SAAA,MAAM,CAAC,GAAG,IAAc,EAAA;AACpC,IAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3C;;ACLM,SAAU,QAAQ,CAAC,IAAa,EAAA;IAClC,OAAO,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;AACxB;;ACFM,SAAU,YAAY,CAAC,KAAsB,EAAA;AAC/C,IAAA,OAAO,QAAQ,CAAC,KAA0B,EAAE,EAAE,CAAC,CAAC;AACpD;;ACFA;;AAEG;AACG,SAAU,YAAY,CAAC,GAAW,EAAA;IACpC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,IAAI,GAAG,CAAC;AACjC;;ACLA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils-math.mjs","sources":["../../../projects/cdk/utils/math/clamp.ts","../../../projects/cdk/utils/math/in-range.ts","../../../projects/cdk/utils/math/normalize-to-int-number.ts","../../../projects/cdk/utils/math/quantize.ts","../../../projects/cdk/utils/math/round.ts","../../../projects/cdk/utils/math/round-with.ts","../../../projects/cdk/utils/math/sum.ts","../../../projects/cdk/utils/math/to-int.ts","../../../projects/cdk/utils/math/taiga-ui-cdk-utils-math.ts"],"sourcesContent":["/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Clamps a value between two inclusive limits\n *\n * @param value\n * @param min lower limit\n * @param max upper limit\n */\nexport function tuiClamp(value: number, min: number, max: number): number {\n ngDevMode && console.assert(!Number.isNaN(value));\n ngDevMode && console.assert(!Number.isNaN(min));\n ngDevMode && console.assert(!Number.isNaN(max));\n ngDevMode && console.assert(max >= min);\n\n return Math.min(max, Math.max(min, value));\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nexport function tuiInRange(\n value: number,\n fromInclude: number,\n toExclude: number,\n): boolean {\n ngDevMode && console.assert(!Number.isNaN(value));\n ngDevMode && console.assert(!Number.isNaN(fromInclude));\n ngDevMode && console.assert(!Number.isNaN(toExclude));\n ngDevMode && console.assert(fromInclude < toExclude);\n\n return value >= fromInclude && value < toExclude;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Normalizes any number to an integer within inclusive range\n *\n * @param value\n * @param min lower inclusive integer\n * @param max upper inclusive integer\n * @return an integer between min and max inclusive\n */\nexport function tuiNormalizeToIntNumber(value: number, min: number, max: number): number {\n ngDevMode && console.assert(Number.isInteger(min));\n ngDevMode && console.assert(Number.isInteger(max));\n ngDevMode && console.assert(min <= max);\n\n if (Number.isNaN(value) || value <= min) {\n return min;\n }\n\n if (value >= max) {\n return max;\n }\n\n return Math.round(value);\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Rounds a number to the closest value in a fixed discrete series\n *\n * @param value\n * @param quantum series step\n */\nexport function tuiQuantize(value: number, quantum: number): number {\n ngDevMode && console.assert(Number.isFinite(value));\n ngDevMode && console.assert(Number.isFinite(quantum));\n ngDevMode && console.assert(quantum > 0);\n\n const remainder = value % quantum;\n\n return remainder < quantum / 2 ? value - remainder : value + quantum - remainder;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nconst MAX_PRECISION = 292;\n\n/**\n * Rounding number to the set precision\n *\n * @param value\n * @param precision number of digits in a float part\n * @param func rounding function (round, floor, ceil)\n */\nfunction calculate(\n value: number,\n precision: number,\n func: (x: number) => number,\n): number {\n if (value === Infinity) {\n return value;\n }\n\n ngDevMode && console.assert(!Number.isNaN(value), 'Value must be number');\n ngDevMode && console.assert(Number.isInteger(precision), 'Precision must be integer');\n\n precision = Math.min(precision, MAX_PRECISION);\n\n const [significand, exponent = ''] = `${value}`.split('e');\n const roundedInt = func(Number(`${significand}e${Number(exponent) + precision}`));\n\n /**\n * TODO: use BigInt after bumping Safari to 14+\n */\n ngDevMode &&\n console.assert(\n Number.isSafeInteger(roundedInt),\n 'Impossible to correctly round such a large number',\n );\n\n const processedPair = `${roundedInt}e`.split('e');\n\n return Number(`${processedPair[0]}e${Number(processedPair[1]) - precision}`);\n}\n\nexport function tuiRound(value: number, precision = 0): number {\n return calculate(value, precision, Math.round);\n}\n\nexport function tuiCeil(value: number, precision = 0): number {\n return calculate(value, precision, Math.ceil);\n}\n\nexport function tuiFloor(value: number, precision = 0): number {\n return calculate(value, precision, Math.floor);\n}\n\nexport function tuiTrunc(value: number, precision = 0): number {\n return calculate(value, precision, Math.trunc);\n}\n\nexport function tuiIsSafeToRound(value: number, precision = 0): boolean {\n return Number.isSafeInteger(Math.trunc(value * 10 ** precision));\n}\n","import {type TuiRounding} from '@taiga-ui/cdk/types';\n\nimport {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round';\n\nexport function tuiRoundWith({\n value,\n precision,\n method,\n}: {\n method: TuiRounding;\n precision: number;\n value: number;\n}): number {\n switch (method) {\n case 'ceil':\n return tuiCeil(value, precision);\n case 'floor':\n return tuiFloor(value, precision);\n case 'round':\n return tuiRound(value, precision);\n default:\n return tuiTrunc(value, precision);\n }\n}\n","/**\n * Calculates sum of any number of passed arguments\n */\nexport function tuiSum(...args: number[]): number {\n return args.reduce((a, b) => a + b, 0);\n}\n","export function tuiToInt(bool: boolean): 0 | 1 {\n return bool ? 1 : 0;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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EAAE,IAAI,CAAC,KAAK,CAAC;AAClD;SAEgB,gBAAgB,CAAC,KAAa,EAAE,SAAS,GAAG,CAAC,EAAA;AACzD,IAAA,OAAO,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,IAAI,SAAS,CAAC,CAAC;AACpE;;ACxDM,SAAU,YAAY,CAAC,EACzB,KAAK,EACL,SAAS,EACT,MAAM,GAKT,EAAA;IACG,QAAQ,MAAM;AACV,QAAA,KAAK,MAAM;AACP,YAAA,OAAO,OAAO,CAAC,KAAK,EAAE,SAAS,CAAC;AACpC,QAAA,KAAK,OAAO;AACR,YAAA,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;AACrC,QAAA,KAAK,OAAO;AACR,YAAA,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;AACrC,QAAA;AACI,YAAA,OAAO,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;;AAE7C;;ACvBA;;AAEG;AACa,SAAA,MAAM,CAAC,GAAG,IAAc,EAAA;AACpC,IAAA,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAC1C;;ACLM,SAAU,QAAQ,CAAC,IAAa,EAAA;IAClC,OAAO,IAAI,GAAG,CAAC,GAAG,CAAC;AACvB;;ACFA;;AAEG;;;;"}
@@ -1,15 +1,14 @@
1
1
  import { FormArray, FormGroup } from '@angular/forms';
2
2
  import { tuiToInt } from '@taiga-ui/cdk/utils/math';
3
- import { InjectionToken, isSignal, signal, inject, effect, DestroyRef, EnvironmentInjector, createComponent } from '@angular/core';
4
- import { TUI_ALLOW_SIGNAL_WRITES } from '@taiga-ui/cdk/constants';
5
- import { toSignal } from '@angular/core/rxjs-interop';
3
+ import { SIGNAL } from '@angular/core/primitives/signals';
4
+ import { InjectionToken, inject, DestroyRef, EnvironmentInjector, createComponent } from '@angular/core';
6
5
 
7
6
  function tuiArrayRemove(array, index) {
8
7
  return array.slice(0, Math.max(index, 0)).concat(array.slice(Math.max(index + 1, 0)));
9
8
  }
10
9
 
11
10
  function tuiArrayShallowEquals(a, b) {
12
- return a.length === b.length && a.every((item, index) => item === b[index]);
11
+ return a.length === b.length && a.every((item, index) => Object.is(item, b[index]));
13
12
  }
14
13
 
15
14
  function tuiArrayToggle(array, item, identity) {
@@ -19,9 +18,6 @@ function tuiArrayToggle(array, item, identity) {
19
18
  return index === -1 ? [...array, item] : tuiArrayRemove(array, index);
20
19
  }
21
20
 
22
- /* internal */
23
- const changeDateSeparator = (dateString, newDateSeparator) => dateString.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);
24
-
25
21
  function tuiIsControlEmpty({ value = null }) {
26
22
  return value === null || value === '' || (Array.isArray(value) && !value.length);
27
23
  }
@@ -36,21 +32,6 @@ function tuiCountFilledControls(control) {
36
32
  return tuiToInt(!tuiIsControlEmpty(control));
37
33
  }
38
34
 
39
- /**
40
- * @deprecated: drop in v5.0
41
- */
42
- function tuiCreateToken(defaults) {
43
- return defaults === undefined
44
- ? new InjectionToken('')
45
- : tuiCreateTokenFromFactory(() => defaults);
46
- }
47
- /**
48
- * @deprecated: drop in v5.0
49
- */
50
- function tuiCreateTokenFromFactory(factory) {
51
- return factory ? new InjectionToken('', { factory }) : new InjectionToken('');
52
- }
53
-
54
35
  function tuiIsString(value) {
55
36
  return typeof value === 'string';
56
37
  }
@@ -65,36 +46,6 @@ function tuiDefaultSort(x, y) {
65
46
  return x > y ? 1 : -1;
66
47
  }
67
48
 
68
- function tuiDirectiveBinding(token, key, initial, options = { self: true }) {
69
- const result = isSignal(initial) ? initial : signal(initial);
70
- const directive = inject(token, options);
71
- const output = directive[`${key.toString()}Change`];
72
- // TODO: Figure out why effects are executed all the time and not just when result changes (check with Angular 18)
73
- let previous;
74
- effect(() => {
75
- const value = result();
76
- if (previous === value) {
77
- return;
78
- }
79
- if (isSignal(directive[key])) {
80
- directive[key].set(value);
81
- }
82
- else {
83
- directive[key] = value;
84
- }
85
- directive.ngOnChanges?.({});
86
- output?.emit?.(value);
87
- previous = value;
88
- }, TUI_ALLOW_SIGNAL_WRITES);
89
- return result;
90
- }
91
-
92
- /** @deprecated remove in v5 */
93
- function tuiDirectiveListener(token, key, options = { self: true }) {
94
- const prop = inject(token, options)?.[key];
95
- return isSignal(prop) ? prop : toSignal(prop);
96
- }
97
-
98
49
  function tuiDistanceBetweenTouches({ touches }) {
99
50
  return Math.hypot((touches[0]?.clientX ?? 0) - (touches[1]?.clientX ?? 0), (touches[0]?.clientY ?? 0) - (touches[1]?.clientY ?? 0));
100
51
  }
@@ -106,15 +57,6 @@ function tuiEaseInOutQuad(t) {
106
57
  return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
107
58
  }
108
59
 
109
- /**
110
- * Flattens two-dimensional array and calculates resulting length
111
- *
112
- * @param array twi dimensional array
113
- */
114
- function tuiFlatLength(array) {
115
- return array.reduce((count, section) => count + section.length, 0);
116
- }
117
-
118
60
  const IFRAME = 'position: fixed; visibility: hidden; pointer-events: none';
119
61
  const BODY = 'height: fit-content; line-height: 1em;';
120
62
  const CLASS = 'tui-font-size-watcher';
@@ -145,23 +87,9 @@ function tuiFontSizeWatcher(callback, win = window) {
145
87
  };
146
88
  }
147
89
 
148
- /**
149
- * Extracts original array from {@link QueryList} rather than
150
- * creating a copy like {@link QueryList.toArray} does.
151
- * @param queryList
152
- * @returns original array from {@link QueryList}.
153
- */
154
- function tuiGetOriginalArrayFromQueryList(queryList) {
155
- let array = [];
156
- queryList.find((_item, _index, originalArray) => {
157
- array = originalArray;
158
- return true;
159
- });
160
- return array;
161
- }
162
-
163
- function tuiIsFalsy(value) {
164
- return !value;
90
+ let autoId = 0;
91
+ function tuiGenerateId() {
92
+ return `tui_${autoId++}${Date.now()}`;
165
93
  }
166
94
 
167
95
  function tuiIsNumber(value) {
@@ -176,19 +104,6 @@ function tuiIsPresent(value) {
176
104
  return value !== null && value !== undefined;
177
105
  }
178
106
 
179
- /**
180
- * @deprecated: drop in v5.0
181
- */
182
- function tuiIsValidUrl(url) {
183
- return new RegExp(String.raw `^([a-zA-Z]+:\/\/)?` + // protocol
184
- String.raw `((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|localhost|` + // domain name
185
- String.raw `((\d{1,3}\.){3}\d{1,3}))` + // OR IP (v4) address
186
- String.raw `(\:\d+)?(\/[-a-z\d%_.~+\:]*)*` + // port and path
187
- String.raw `(\?[)(;&a-z\d%_.~+=-]*)?` + // query string
188
- String.raw `(\#[-a-z\d_]*)?$`, // fragment locator
189
- 'i').test(url);
190
- }
191
-
192
107
  function tuiMarkControlAsTouchedAndValidate(control) {
193
108
  if (control instanceof FormArray) {
194
109
  control.controls.forEach((nestedControl) => {
@@ -249,7 +164,7 @@ function tuiObfuscate(value, symbol) {
249
164
  visible = 1;
250
165
  }
251
166
  obfuscateIndexes = obfuscateIndexes.slice(visible, obfuscateIndexes.length);
252
- const lastIndex = (obfuscateIndexes.length) - visible;
167
+ const lastIndex = obfuscateIndexes.length - visible;
253
168
  obfuscateIndexes = obfuscateIndexes.slice(0, lastIndex < 0 ? 0 : lastIndex);
254
169
  const result = value.split('');
255
170
  obfuscateIndexes.forEach((index) => {
@@ -275,23 +190,6 @@ function getObfuscateIndexes(value, match) {
275
190
  return obfuscateIndexes;
276
191
  }
277
192
 
278
- function tuiProvide(provide, useExisting, multi = false) {
279
- return { provide, useExisting, multi };
280
- }
281
-
282
- // TODO: Drop ProviderToken in v.5
283
- function tuiProvideOptions(provide, options, fallback) {
284
- return {
285
- provide,
286
- useFactory: () => ({
287
- ...(inject(provide, { optional: true, skipSelf: true }) || fallback),
288
- ...(inject(options, { optional: true }) ||
289
- // @ts-ignore
290
- (typeof options === 'function' ? options() : options)),
291
- }),
292
- };
293
- }
294
-
295
193
  /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
296
194
  function decorateMethod(originalMethod) {
297
195
  let previousArgs = [];
@@ -384,10 +282,45 @@ function tuiPx(value) {
384
282
  return `${value}px`;
385
283
  }
386
284
 
387
- function tuiUniqBy(array, key) {
388
- return Array.from(array
389
- .reduce((map, item) => (map.has(item[key]) ? map : map.set(item[key], item)), new Map())
390
- .values());
285
+ /**
286
+ * Sanitizes pasted or dropped text by removing invisible and control characters
287
+ * that can appear in clipboard or drag-and-drop data.
288
+ *
289
+ * Removes:
290
+ * 1. ASCII control characters (0x00–0x1F) — non-printable characters like
291
+ * NULL, BEL, BS, CR, LF, TAB, ESC, etc.
292
+ * 2. Extended control characters (0x7F–0x9F) — C1 control codes from ISO-8859-1,
293
+ * often found in legacy or malformed text encodings.
294
+ * 3. Zero-width and special Unicode characters:
295
+ * - U+200B ZERO WIDTH SPACE
296
+ * - U+200C ZERO WIDTH NON-JOINER
297
+ * - U+200D ZERO WIDTH JOINER
298
+ * - U+FEFF BYTE ORDER MARK (BOM)
299
+ *
300
+ * @param {string} value - The input string from clipboard or drag event.
301
+ * @returns {string} - A cleaned string without control or invisible characters.
302
+ *
303
+ * @example
304
+ * tuiSanitizeText('Hello\u0000World\u200B!');
305
+ * // → "HelloWorld!"
306
+ */
307
+ function tuiSanitizeText(value) {
308
+ // eslint-disable-next-line no-control-regex
309
+ const controlCharsRegex = /[\x00-\x1F\x7F-\x9F]/g;
310
+ const zeroWidthCharsRegex = /[\u200B-\u200D\uFEFF]/g;
311
+ return value.replaceAll(controlCharsRegex, '').replaceAll(zeroWidthCharsRegex, '');
312
+ }
313
+
314
+ function tuiSetSignal(signal, value) {
315
+ if ('set' in signal) {
316
+ signal.set(value);
317
+ }
318
+ else if ('applyValueToInputSignal' in signal[SIGNAL]) {
319
+ signal[SIGNAL].applyValueToInputSignal(signal[SIGNAL], value);
320
+ }
321
+ else {
322
+ ngDevMode && console.assert(false, 'tuiSetSignal was called on read-only signal');
323
+ }
391
324
  }
392
325
 
393
326
  const MAP = new InjectionToken(ngDevMode ? 'MAP' : '', {
@@ -410,5 +343,5 @@ function tuiWithStyles(component) {
410
343
  * Generated bundle index. Do not edit.
411
344
  */
412
345
 
413
- export { TuiPureException, changeDateSeparator, tuiArrayRemove, tuiArrayShallowEquals, tuiArrayToggle, tuiCountFilledControls, tuiCreateToken, tuiCreateTokenFromFactory, tuiDefaultSort, tuiDirectiveBinding, tuiDirectiveListener, tuiDistanceBetweenTouches, tuiEaseInOutQuad, tuiFlatLength, tuiFontSizeWatcher, tuiGetOriginalArrayFromQueryList, tuiIsControlEmpty, tuiIsFalsy, tuiIsNumber, tuiIsObject, tuiIsPresent, tuiIsString, tuiIsValidUrl, tuiMarkControlAsTouchedAndValidate, tuiNullableSame, tuiObfuscate, tuiProvide, tuiProvideOptions, tuiPure, tuiPx, tuiUniqBy, tuiWithStyles };
346
+ export { TuiPureException, tuiArrayRemove, tuiArrayShallowEquals, tuiArrayToggle, tuiCountFilledControls, tuiDefaultSort, tuiDistanceBetweenTouches, tuiEaseInOutQuad, tuiFontSizeWatcher, tuiGenerateId, tuiIsControlEmpty, tuiIsNumber, tuiIsObject, tuiIsPresent, tuiIsString, tuiMarkControlAsTouchedAndValidate, tuiNullableSame, tuiObfuscate, tuiPure, tuiPx, tuiSanitizeText, tuiSetSignal, tuiWithStyles };
414
347
  //# sourceMappingURL=taiga-ui-cdk-utils-miscellaneous.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-miscellaneous.mjs","sources":["../../../projects/cdk/utils/miscellaneous/array-remove.ts","../../../projects/cdk/utils/miscellaneous/array-shallow-equals.ts","../../../projects/cdk/utils/miscellaneous/array-toggle.ts","../../../projects/cdk/utils/miscellaneous/change-date-separator.ts","../../../projects/cdk/utils/miscellaneous/is-control-empty.ts","../../../projects/cdk/utils/miscellaneous/count-filled-controls.ts","../../../projects/cdk/utils/miscellaneous/create-token.ts","../../../projects/cdk/utils/miscellaneous/is-string.ts","../../../projects/cdk/utils/miscellaneous/default-sort.ts","../../../projects/cdk/utils/miscellaneous/directive-binding.ts","../../../projects/cdk/utils/miscellaneous/directive-listener.ts","../../../projects/cdk/utils/miscellaneous/distance-between-touches.ts","../../../projects/cdk/utils/miscellaneous/ease-in-out-quad.ts","../../../projects/cdk/utils/miscellaneous/flat-length.ts","../../../projects/cdk/utils/miscellaneous/font-size-watcher.ts","../../../projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts","../../../projects/cdk/utils/miscellaneous/is-falsy.ts","../../../projects/cdk/utils/miscellaneous/is-number.ts","../../../projects/cdk/utils/miscellaneous/is-object.ts","../../../projects/cdk/utils/miscellaneous/is-present.ts","../../../projects/cdk/utils/miscellaneous/is-valid-url.ts","../../../projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts","../../../projects/cdk/utils/miscellaneous/nullable-same.ts","../../../projects/cdk/utils/miscellaneous/obfuscate.ts","../../../projects/cdk/utils/miscellaneous/provide.ts","../../../projects/cdk/utils/miscellaneous/provide-options.ts","../../../projects/cdk/utils/miscellaneous/pure.ts","../../../projects/cdk/utils/miscellaneous/px.ts","../../../projects/cdk/utils/miscellaneous/uniq-by.ts","../../../projects/cdk/utils/miscellaneous/with-styles.ts","../../../projects/cdk/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.ts"],"sourcesContent":["export function tuiArrayRemove<T>(array: readonly T[], index: number): T[] {\n return array.slice(0, Math.max(index, 0)).concat(array.slice(Math.max(index + 1, 0)));\n}\n","export function tuiArrayShallowEquals<T>(a: readonly T[], b: readonly T[]): boolean {\n return a.length === b.length && a.every((item, index) => item === b[index]);\n}\n","import {type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {tuiArrayRemove} from './array-remove';\n\nexport function tuiArrayToggle<T>(\n array: readonly T[],\n item: T,\n identity?: TuiIdentityMatcher<T>,\n): T[] {\n const index = identity\n ? array.findIndex((it) => identity(it, item))\n : array.indexOf(item);\n\n return index === -1 ? [...array, item] : tuiArrayRemove(array, index);\n}\n","/* internal */\nexport const changeDateSeparator = (\n dateString: string,\n newDateSeparator: string,\n): string => dateString.replaceAll(/[^0-9A-Za-zА-Яа-я]/gi, newDateSeparator);\n","import {type AbstractControl} from '@angular/forms';\n\nexport function tuiIsControlEmpty({value = null}: AbstractControl): boolean {\n return value === null || value === '' || (Array.isArray(value) && !value.length);\n}\n","import {type AbstractControl, FormArray, FormGroup} from '@angular/forms';\nimport {tuiToInt} from '@taiga-ui/cdk/utils/math';\n\nimport {tuiIsControlEmpty} from './is-control-empty';\n\nexport function tuiCountFilledControls(control: AbstractControl): number {\n if (control instanceof FormArray) {\n return control.controls.reduce(\n (acc, nestedControl) => acc + tuiCountFilledControls(nestedControl),\n 0,\n );\n }\n\n if (control instanceof FormGroup) {\n return Object.values(control.controls).reduce(\n (acc, nestedControl) => acc + tuiCountFilledControls(nestedControl),\n 0,\n );\n }\n\n return tuiToInt(!tuiIsControlEmpty(control));\n}\n","import {InjectionToken} from '@angular/core';\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiCreateToken<T>(defaults?: T): InjectionToken<T> {\n return defaults === undefined\n ? new InjectionToken('')\n : tuiCreateTokenFromFactory(() => defaults);\n}\n\n/**\n * @deprecated: drop in v5.0\n */\nexport function tuiCreateTokenFromFactory<T>(factory?: () => T): InjectionToken<T> {\n return factory ? new InjectionToken<T>('', {factory}) : new InjectionToken<T>('');\n}\n","export function tuiIsString(value: unknown): value is string {\n return typeof value === 'string';\n}\n","import {tuiIsString} from './is-string';\n\nexport function tuiDefaultSort<T>(x: T, y: T): number {\n if (x === y) {\n return 0;\n }\n\n if (tuiIsString(x) && tuiIsString(y)) {\n return x.localeCompare(y);\n }\n\n return x > y ? 1 : -1;\n}\n","import {\n effect,\n inject,\n type InjectOptions,\n isSignal,\n type ProviderToken,\n type Signal,\n signal,\n type WritableSignal,\n} from '@angular/core';\nimport {TUI_ALLOW_SIGNAL_WRITES} from '@taiga-ui/cdk/constants';\n\ntype SignalLikeTypeOf<T> = T extends Signal<infer R> ? R : T;\n\ntype SignalLike<T> = Signal<T> | T;\n\nexport function tuiDirectiveBinding<\n T,\n G extends keyof T,\n I extends SignalLike<SignalLikeTypeOf<T[G]>>,\n>(\n token: ProviderToken<T>,\n key: G,\n initial: I,\n options: InjectOptions = {self: true},\n): I extends Signal<any> ? I : WritableSignal<I> {\n const result: any = isSignal(initial) ? initial : signal(initial);\n const directive: any = inject(token, options);\n const output = directive[`${key.toString()}Change`];\n\n // TODO: Figure out why effects are executed all the time and not just when result changes (check with Angular 18)\n let previous: any;\n\n effect(() => {\n const value: any = result();\n\n if (previous === value) {\n return;\n }\n\n if (isSignal(directive[key])) {\n directive[key].set(value);\n } else {\n directive[key] = value;\n }\n\n directive.ngOnChanges?.({});\n output?.emit?.(value);\n previous = value;\n }, TUI_ALLOW_SIGNAL_WRITES);\n\n return result;\n}\n","import {\n inject,\n type InjectOptions,\n isSignal,\n type ProviderToken,\n type Signal,\n} from '@angular/core';\nimport {toSignal} from '@angular/core/rxjs-interop';\nimport {type Observable} from 'rxjs';\n\ntype OutputKeysOf<T> = {\n [K in keyof T]: T[K] extends Observable<any> | Signal<any> ? K : never;\n}[keyof T];\n\ntype OutputTypeOf<T> =\n T extends Signal<infer R> ? R : T extends Observable<infer O> ? O : never;\n\n/** @deprecated remove in v5 */\nexport function tuiDirectiveListener<T, K extends OutputKeysOf<T>>(\n token: ProviderToken<T>,\n key: K,\n options: InjectOptions = {self: true},\n): Signal<OutputTypeOf<T[K]>> {\n const prop: any = inject(token, options)?.[key];\n\n return isSignal(prop) ? prop : toSignal<any>(prop);\n}\n","export function tuiDistanceBetweenTouches({touches}: TouchEvent): number {\n return Math.hypot(\n (touches[0]?.clientX ?? 0) - (touches[1]?.clientX ?? 0),\n (touches[0]?.clientY ?? 0) - (touches[1]?.clientY ?? 0),\n );\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nexport function tuiEaseInOutQuad(t: number): number {\n ngDevMode &&\n console.assert(\n t >= 0 && t <= 1,\n 'Input must be between 0 and 1 inclusive but received ',\n t,\n );\n\n return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n}\n","/**\n * Flattens two-dimensional array and calculates resulting length\n *\n * @param array twi dimensional array\n */\nexport function tuiFlatLength(array: ReadonlyArray<readonly unknown[]>): number {\n return array.reduce((count, section) => count + section.length, 0);\n}\n","const IFRAME = 'position: fixed; visibility: hidden; pointer-events: none';\nconst BODY = 'height: fit-content; line-height: 1em;';\nconst CLASS = 'tui-font-size-watcher';\n\nexport function tuiFontSizeWatcher(\n callback: (fontSize: number) => void,\n win: Window = window,\n): () => void {\n if (win.document.querySelector(`.${CLASS}`)) {\n return () => {};\n }\n\n const iframe = win.document.createElement('iframe');\n const resize = (): void => {\n const {innerWidth, outerWidth, devicePixelRatio} = win;\n\n iframe.width = `${innerWidth === outerWidth ? innerWidth : innerWidth / devicePixelRatio}`;\n };\n\n win.document.body.append(iframe);\n win.addEventListener('resize', resize);\n\n const doc = iframe.contentWindow?.document;\n const observer = new ResizeObserver(() => callback(doc?.body.offsetHeight || 0));\n\n iframe.setAttribute('class', CLASS);\n iframe.setAttribute('style', IFRAME);\n doc?.documentElement.style.setProperty('font', '-apple-system-body');\n doc?.body.setAttribute('style', BODY);\n doc?.body.insertAdjacentText('beforeend', '.'.repeat(1000));\n observer.observe(doc?.body || iframe);\n resize();\n\n return () => {\n observer.disconnect();\n iframe.remove();\n win.removeEventListener('resize', resize);\n };\n}\n","import {type QueryList} from '@angular/core';\n\n/**\n * Extracts original array from {@link QueryList} rather than\n * creating a copy like {@link QueryList.toArray} does.\n * @param queryList\n * @returns original array from {@link QueryList}.\n */\nexport function tuiGetOriginalArrayFromQueryList<T>(\n queryList: QueryList<T>,\n): readonly T[] {\n let array: readonly T[] = [];\n\n queryList.find((_item, _index, originalArray) => {\n array = originalArray;\n\n return true;\n });\n\n return array;\n}\n","export function tuiIsFalsy(value: unknown): boolean {\n return !value;\n}\n","export function tuiIsNumber(value: unknown): value is number {\n return typeof value === 'number';\n}\n","export function tuiIsObject<T extends Record<string, any>>(\n value: unknown,\n): value is NonNullable<T> {\n return typeof value === 'object' && !!value;\n}\n","export function tuiIsPresent<T>(value?: T | null): value is T {\n return value !== null && value !== undefined;\n}\n","/**\n * @deprecated: drop in v5.0\n */\nexport function tuiIsValidUrl(url: string): boolean {\n return new RegExp(\n String.raw`^([a-zA-Z]+:\\/\\/)?` + // protocol\n String.raw`((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|localhost|` + // domain name\n String.raw`((\\d{1,3}\\.){3}\\d{1,3}))` + // OR IP (v4) address\n String.raw`(\\:\\d+)?(\\/[-a-z\\d%_.~+\\:]*)*` + // port and path\n String.raw`(\\?[)(;&a-z\\d%_.~+=-]*)?` + // query string\n String.raw`(\\#[-a-z\\d_]*)?$`, // fragment locator\n 'i',\n ).test(url);\n}\n","import {type AbstractControl, FormArray, FormGroup} from '@angular/forms';\n\nexport function tuiMarkControlAsTouchedAndValidate(control: AbstractControl): void {\n if (control instanceof FormArray) {\n control.controls.forEach((nestedControl) => {\n tuiMarkControlAsTouchedAndValidate(nestedControl);\n });\n }\n\n if (control instanceof FormGroup) {\n Object.values(control.controls).forEach((nestedControl) => {\n tuiMarkControlAsTouchedAndValidate(nestedControl);\n });\n }\n\n control.markAsTouched();\n control.updateValueAndValidity();\n}\n","import {type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\n/**\n * Checks identity for nullable elements.\n *\n * @param a element a\n * @param b element b\n * @param handler called if both elements are not null\n * @return true if either both are null or they pass identity handler\n */\nexport function tuiNullableSame<T>(\n a: T | null,\n b: T | null,\n handler: TuiIdentityMatcher<T>,\n): boolean {\n if (a === null) {\n return b === null;\n }\n\n if (b === null) {\n return false;\n }\n\n return handler(a, b);\n}\n","/**\n * Obfuscates a string by replacing certain characters with a symbol.\n *\n * @param value the input string to obfuscate\n * @param symbol the symbol for obfuscation\n * @return the obfuscated string\n *\n * The function determines which characters to obfuscate using a regular expression and the string's length:\n * - 8 or more: show first 2 and last 2 characters\n * - 4 to 7: show first and last character\n * - less than 4: obfuscate all characters\n * - obfuscates only alphanumeric characters\n */\nexport function tuiObfuscate(value: string, symbol: string): string {\n if (!value) {\n return value;\n }\n\n const match = /[\\p{L}\\p{N}]/gu;\n\n let visible = 0;\n let obfuscateIndexes: number[] = getObfuscateIndexes(value, match);\n\n if (obfuscateIndexes.length >= 8) {\n visible = 2;\n } else if (obfuscateIndexes.length >= 4) {\n visible = 1;\n }\n\n obfuscateIndexes = obfuscateIndexes.slice(visible, obfuscateIndexes.length);\n\n const lastIndex = (obfuscateIndexes.length satisfies number) - visible;\n\n obfuscateIndexes = obfuscateIndexes.slice(0, lastIndex < 0 ? 0 : lastIndex);\n\n const result = value.split('');\n\n obfuscateIndexes.forEach((index) => {\n result[index] = symbol;\n });\n\n return result.join('');\n}\n\nfunction getObfuscateIndexes(value: string, match?: RegExp): number[] {\n if (!match) {\n return Array.from({length: value.length}).map((_, index) => index);\n }\n\n const obfuscateIndexes: number[] = [];\n let matchResult;\n let count = 0;\n\n while ((matchResult = match.exec(value)) !== null && count < value.length) {\n const start = matchResult.index;\n const end = match.lastIndex - 1;\n\n for (let i = start; i <= end; i++) {\n obfuscateIndexes.push(i);\n }\n\n count++;\n }\n\n return obfuscateIndexes;\n}\n","import {type ExistingProvider, type ProviderToken} from '@angular/core';\n\nexport function tuiProvide<T>(\n provide: ProviderToken<T>,\n useExisting: ProviderToken<T>,\n): ExistingProvider;\nexport function tuiProvide<T>(\n provide: ProviderToken<T | T[]>,\n useExisting: ProviderToken<T>,\n multi: boolean,\n): ExistingProvider;\nexport function tuiProvide<T>(\n provide: ProviderToken<T>,\n useExisting: ProviderToken<T>,\n multi = false,\n): ExistingProvider {\n return {provide, useExisting, multi};\n}\n","import {\n type FactoryProvider,\n inject,\n type InjectionToken,\n type ProviderToken,\n} from '@angular/core';\n\n// TODO: Drop ProviderToken in v.5\nexport function tuiProvideOptions<T>(\n provide: InjectionToken<T>,\n options: Partial<T> | ProviderToken<Partial<T>> | (() => Partial<T>),\n fallback: T,\n): FactoryProvider {\n return {\n provide,\n useFactory: (): T => ({\n ...(inject(provide, {optional: true, skipSelf: true}) || fallback),\n ...(inject(options as any, {optional: true}) ||\n // @ts-ignore\n (typeof options === 'function' ? options() : options)),\n }),\n };\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nfunction decorateMethod(\n originalMethod: (...args: unknown[]) => unknown,\n): (this: object, ...args: unknown[]) => unknown {\n let previousArgs: readonly unknown[] = [];\n let originalFnWasCalledLeastAtOnce = false;\n let pureValue: unknown;\n\n return function tuiPureMethodPatched(this: object, ...args: unknown[]): unknown {\n const isPure =\n originalFnWasCalledLeastAtOnce &&\n previousArgs.length === args.length &&\n args.every((arg, index) => arg === previousArgs[index]);\n\n if (isPure) {\n return pureValue;\n }\n\n previousArgs = args;\n pureValue = originalMethod.apply(this, args);\n originalFnWasCalledLeastAtOnce = true;\n\n return pureValue;\n };\n}\n\nfunction decorateGetter(\n originalGetter: () => unknown,\n propertyKey: string | symbol,\n enumerable = true,\n): (this: object) => unknown {\n return function tuiPureGetterPatched(this: object): unknown {\n const value = originalGetter.call(this);\n\n Object.defineProperty(this, propertyKey, {enumerable, value});\n\n return value;\n };\n}\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * @throws error if used not on getter or function\n *\n * CAUTION: they must be pure.\n * TODO(v5): drop compatibility for legacy \"experimentalDecorators\": true\n */\nexport function tuiPure<T>(\n target: object,\n propertyKey: string,\n {get, enumerable, value}: TypedPropertyDescriptor<T>,\n): TypedPropertyDescriptor<T>;\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * CAUTION: they must be pure.\n */\nexport function tuiPure<A extends unknown[], R>(\n target: (...args: A) => R,\n context: ClassGetterDecoratorContext | ClassMethodDecoratorContext,\n): (...args: A) => R;\n\nexport function tuiPure(\n target: object | ((...args: unknown[]) => unknown),\n propertyKeyOrContext:\n | ClassGetterDecoratorContext\n | ClassMethodDecoratorContext\n | string,\n descriptor?: TypedPropertyDescriptor<(...args: unknown[]) => unknown>,\n): TypedPropertyDescriptor<unknown> | ((...args: unknown[]) => unknown) {\n if (typeof target === 'function') {\n const context = propertyKeyOrContext as\n | ClassGetterDecoratorContext\n | ClassMethodDecoratorContext;\n\n if (context.kind === 'getter') {\n return decorateGetter(target as () => unknown, context.name);\n }\n\n if (context.kind === 'method') {\n return decorateMethod(target as (...args: unknown[]) => unknown);\n }\n\n throw new TuiPureException();\n }\n\n // TODO(v5): drop compatibility for legacy \"experimentalDecorators\": true\n const {get, enumerable, value} = descriptor!;\n const propertyKey = propertyKeyOrContext as string;\n\n if (get) {\n return {\n configurable: true,\n enumerable,\n get: decorateGetter(get, propertyKey, enumerable),\n };\n }\n\n if (typeof value !== 'function') {\n throw new TuiPureException();\n }\n\n const original = value;\n\n return {\n configurable: true,\n enumerable,\n get(): unknown {\n let previousArgs: readonly unknown[] = [];\n let originalFnWasCalledLeastAtOnce = false;\n let pureValue: unknown;\n\n const patched = (...args: unknown[]): unknown => {\n const isPure =\n originalFnWasCalledLeastAtOnce &&\n previousArgs.length === args.length &&\n args.every((arg, index) => arg === previousArgs[index]);\n\n if (isPure) {\n return pureValue;\n }\n\n previousArgs = args;\n pureValue = original.apply(this, args);\n originalFnWasCalledLeastAtOnce = true;\n\n return pureValue;\n };\n\n Object.defineProperty(this, propertyKey, {\n configurable: true,\n value: patched,\n });\n\n return patched as unknown;\n },\n };\n}\n\nexport class TuiPureException extends Error {\n constructor() {\n super(ngDevMode ? 'tuiPure can only be used with functions or getters' : '');\n }\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Adds 'px' to the number and turns it into a string\n */\nexport function tuiPx(value: number): string {\n ngDevMode && console.assert(Number.isFinite(value), 'Value must be finite number');\n\n return `${value}px`;\n}\n","import {type TuiValuesOf} from '@taiga-ui/cdk/types';\n\nexport function tuiUniqBy<T extends Record<string, any>>(\n array: readonly T[],\n key: keyof T,\n): readonly T[] {\n return Array.from(\n array\n .reduce(\n (map, item) => (map.has(item[key]) ? map : map.set(item[key], item)),\n new Map<TuiValuesOf<T>, T>(),\n )\n .values(),\n );\n}\n","import {\n createComponent,\n DestroyRef,\n EnvironmentInjector,\n inject,\n InjectionToken,\n type Type,\n} from '@angular/core';\n\nconst MAP = new InjectionToken(ngDevMode ? 'MAP' : '', {\n factory: () => {\n const map = new Map();\n\n inject(DestroyRef).onDestroy(() =>\n map.forEach((component) => component.destroy()),\n );\n\n return map;\n },\n});\n\nexport function tuiWithStyles(component: Type<unknown>): undefined {\n const map = inject(MAP);\n const environmentInjector = inject(EnvironmentInjector);\n\n if (!map.has(component)) {\n map.set(component, createComponent(component, {environmentInjector}));\n }\n\n return undefined;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAgB,SAAA,cAAc,CAAI,KAAmB,EAAE,KAAa,EAAA;AAChE,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1F;;ACFgB,SAAA,qBAAqB,CAAI,CAAe,EAAE,CAAe,EAAA;IACrE,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAChF;;SCEgB,c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AE,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC,EACpE,IAAI,GAAG,EAAqB,CAC/B;SACA,MAAM,EAAE,CAChB,CAAC;AACN;;ACLA,MAAM,GAAG,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,KAAK,GAAG,EAAE,EAAE;IACnD,OAAO,EAAE,MAAK;AACV,QAAA,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;QAEtB,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,MACzB,GAAG,CAAC,OAAO,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,OAAO,EAAE,CAAC,CAClD,CAAC;AAEF,QAAA,OAAO,GAAG,CAAC;KACd;AACJ,CAAA,CAAC,CAAC;AAEG,SAAU,aAAa,CAAC,SAAwB,EAAA;AAClD,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACxB,IAAA,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC;AAExD,IAAA,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;AACrB,QAAA,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,eAAe,CAAC,SAAS,EAAE,EAAC,mBAAmB,EAAC,CAAC,CAAC,CAAC;AACzE,KAAA;AAED,IAAA,OAAO,SAAS,CAAC;AACrB;;AC9BA;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils-miscellaneous.mjs","sources":["../../../projects/cdk/utils/miscellaneous/array-remove.ts","../../../projects/cdk/utils/miscellaneous/array-shallow-equals.ts","../../../projects/cdk/utils/miscellaneous/array-toggle.ts","../../../projects/cdk/utils/miscellaneous/is-control-empty.ts","../../../projects/cdk/utils/miscellaneous/count-filled-controls.ts","../../../projects/cdk/utils/miscellaneous/is-string.ts","../../../projects/cdk/utils/miscellaneous/default-sort.ts","../../../projects/cdk/utils/miscellaneous/distance-between-touches.ts","../../../projects/cdk/utils/miscellaneous/ease-in-out-quad.ts","../../../projects/cdk/utils/miscellaneous/font-size-watcher.ts","../../../projects/cdk/utils/miscellaneous/generate-id.ts","../../../projects/cdk/utils/miscellaneous/is-number.ts","../../../projects/cdk/utils/miscellaneous/is-object.ts","../../../projects/cdk/utils/miscellaneous/is-present.ts","../../../projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts","../../../projects/cdk/utils/miscellaneous/nullable-same.ts","../../../projects/cdk/utils/miscellaneous/obfuscate.ts","../../../projects/cdk/utils/miscellaneous/pure.ts","../../../projects/cdk/utils/miscellaneous/px.ts","../../../projects/cdk/utils/miscellaneous/sanitize-text.ts","../../../projects/cdk/utils/miscellaneous/set-signal.ts","../../../projects/cdk/utils/miscellaneous/with-styles.ts","../../../projects/cdk/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.ts"],"sourcesContent":["export function tuiArrayRemove<T>(array: readonly T[], index: number): T[] {\n return array.slice(0, Math.max(index, 0)).concat(array.slice(Math.max(index + 1, 0)));\n}\n","export function tuiArrayShallowEquals<T>(a: readonly T[], b: readonly T[]): boolean {\n return a.length === b.length && a.every((item, index) => Object.is(item, b[index]));\n}\n","import {type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\nimport {tuiArrayRemove} from './array-remove';\n\nexport function tuiArrayToggle<T>(\n array: readonly T[],\n item: T,\n identity?: TuiIdentityMatcher<T>,\n): T[] {\n const index = identity\n ? array.findIndex((it) => identity(it, item))\n : array.indexOf(item);\n\n return index === -1 ? [...array, item] : tuiArrayRemove(array, index);\n}\n","import {type AbstractControl} from '@angular/forms';\n\nexport function tuiIsControlEmpty({value = null}: AbstractControl): boolean {\n return value === null || value === '' || (Array.isArray(value) && !value.length);\n}\n","import {type AbstractControl, FormArray, FormGroup} from '@angular/forms';\nimport {tuiToInt} from '@taiga-ui/cdk/utils/math';\n\nimport {tuiIsControlEmpty} from './is-control-empty';\n\nexport function tuiCountFilledControls(control: AbstractControl): number {\n if (control instanceof FormArray) {\n return control.controls.reduce(\n (acc, nestedControl) => acc + tuiCountFilledControls(nestedControl),\n 0,\n );\n }\n\n if (control instanceof FormGroup) {\n return Object.values(control.controls).reduce(\n (acc, nestedControl) => acc + tuiCountFilledControls(nestedControl),\n 0,\n );\n }\n\n return tuiToInt(!tuiIsControlEmpty(control));\n}\n","export function tuiIsString(value: unknown): value is string {\n return typeof value === 'string';\n}\n","import {tuiIsString} from './is-string';\n\nexport function tuiDefaultSort<T>(x: T, y: T): number {\n if (x === y) {\n return 0;\n }\n\n if (tuiIsString(x) && tuiIsString(y)) {\n return x.localeCompare(y);\n }\n\n return x > y ? 1 : -1;\n}\n","export function tuiDistanceBetweenTouches({touches}: TouchEvent): number {\n return Math.hypot(\n (touches[0]?.clientX ?? 0) - (touches[1]?.clientX ?? 0),\n (touches[0]?.clientY ?? 0) - (touches[1]?.clientY ?? 0),\n );\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nexport function tuiEaseInOutQuad(t: number): number {\n ngDevMode &&\n console.assert(\n t >= 0 && t <= 1,\n 'Input must be between 0 and 1 inclusive but received ',\n t,\n );\n\n return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n}\n","const IFRAME = 'position: fixed; visibility: hidden; pointer-events: none';\nconst BODY = 'height: fit-content; line-height: 1em;';\nconst CLASS = 'tui-font-size-watcher';\n\nexport function tuiFontSizeWatcher(\n callback: (fontSize: number) => void,\n win: Window = window,\n): () => void {\n if (win.document.querySelector(`.${CLASS}`)) {\n return () => {};\n }\n\n const iframe = win.document.createElement('iframe');\n const resize = (): void => {\n const {innerWidth, outerWidth, devicePixelRatio} = win;\n\n iframe.width = `${innerWidth === outerWidth ? innerWidth : innerWidth / devicePixelRatio}`;\n };\n\n win.document.body.append(iframe);\n win.addEventListener('resize', resize);\n\n const doc = iframe.contentWindow?.document;\n const observer = new ResizeObserver(() => callback(doc?.body.offsetHeight || 0));\n\n iframe.setAttribute('class', CLASS);\n iframe.setAttribute('style', IFRAME);\n doc?.documentElement.style.setProperty('font', '-apple-system-body');\n doc?.body.setAttribute('style', BODY);\n doc?.body.insertAdjacentText('beforeend', '.'.repeat(1000));\n observer.observe(doc?.body || iframe);\n resize();\n\n return () => {\n observer.disconnect();\n iframe.remove();\n win.removeEventListener('resize', resize);\n };\n}\n","let autoId = 0;\n\nexport function tuiGenerateId(): string {\n return `tui_${autoId++}${Date.now()}`;\n}\n","export function tuiIsNumber(value: unknown): value is number {\n return typeof value === 'number';\n}\n","export function tuiIsObject<T extends Record<string, any>>(\n value: unknown,\n): value is NonNullable<T> {\n return typeof value === 'object' && !!value;\n}\n","export function tuiIsPresent<T>(value?: T | null): value is T {\n return value !== null && value !== undefined;\n}\n","import {type AbstractControl, FormArray, FormGroup} from '@angular/forms';\n\nexport function tuiMarkControlAsTouchedAndValidate(control: AbstractControl): void {\n if (control instanceof FormArray) {\n control.controls.forEach((nestedControl) => {\n tuiMarkControlAsTouchedAndValidate(nestedControl);\n });\n }\n\n if (control instanceof FormGroup) {\n Object.values(control.controls).forEach((nestedControl) => {\n tuiMarkControlAsTouchedAndValidate(nestedControl);\n });\n }\n\n control.markAsTouched();\n control.updateValueAndValidity();\n}\n","import {type TuiIdentityMatcher} from '@taiga-ui/cdk/types';\n\n/**\n * Checks identity for nullable elements.\n *\n * @param a element a\n * @param b element b\n * @param handler called if both elements are not null\n * @return true if either both are null or they pass identity handler\n */\nexport function tuiNullableSame<T>(\n a: T | null,\n b: T | null,\n handler: TuiIdentityMatcher<T>,\n): boolean {\n if (a === null) {\n return b === null;\n }\n\n if (b === null) {\n return false;\n }\n\n return handler(a, b);\n}\n","/**\n * Obfuscates a string by replacing certain characters with a symbol.\n *\n * @param value the input string to obfuscate\n * @param symbol the symbol for obfuscation\n * @return the obfuscated string\n *\n * The function determines which characters to obfuscate using a regular expression and the string's length:\n * - 8 or more: show first 2 and last 2 characters\n * - 4 to 7: show first and last character\n * - less than 4: obfuscate all characters\n * - obfuscates only alphanumeric characters\n */\nexport function tuiObfuscate(value: string, symbol: string): string {\n if (!value) {\n return value;\n }\n\n const match = /[\\p{L}\\p{N}]/gu;\n\n let visible = 0;\n let obfuscateIndexes: number[] = getObfuscateIndexes(value, match);\n\n if (obfuscateIndexes.length >= 8) {\n visible = 2;\n } else if (obfuscateIndexes.length >= 4) {\n visible = 1;\n }\n\n obfuscateIndexes = obfuscateIndexes.slice(visible, obfuscateIndexes.length);\n\n const lastIndex = (obfuscateIndexes.length satisfies number) - visible;\n\n obfuscateIndexes = obfuscateIndexes.slice(0, lastIndex < 0 ? 0 : lastIndex);\n\n const result = value.split('');\n\n obfuscateIndexes.forEach((index) => {\n result[index] = symbol;\n });\n\n return result.join('');\n}\n\nfunction getObfuscateIndexes(value: string, match?: RegExp): number[] {\n if (!match) {\n return Array.from({length: value.length}).map((_, index) => index);\n }\n\n const obfuscateIndexes: number[] = [];\n let matchResult;\n let count = 0;\n\n while ((matchResult = match.exec(value)) !== null && count < value.length) {\n const start = matchResult.index;\n const end = match.lastIndex - 1;\n\n for (let i = start; i <= end; i++) {\n obfuscateIndexes.push(i);\n }\n\n count++;\n }\n\n return obfuscateIndexes;\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\nfunction decorateMethod(\n originalMethod: (...args: unknown[]) => unknown,\n): (this: object, ...args: unknown[]) => unknown {\n let previousArgs: readonly unknown[] = [];\n let originalFnWasCalledLeastAtOnce = false;\n let pureValue: unknown;\n\n return function tuiPureMethodPatched(this: object, ...args: unknown[]): unknown {\n const isPure =\n originalFnWasCalledLeastAtOnce &&\n previousArgs.length === args.length &&\n args.every((arg, index) => arg === previousArgs[index]);\n\n if (isPure) {\n return pureValue;\n }\n\n previousArgs = args;\n pureValue = originalMethod.apply(this, args);\n originalFnWasCalledLeastAtOnce = true;\n\n return pureValue;\n };\n}\n\nfunction decorateGetter(\n originalGetter: () => unknown,\n propertyKey: string | symbol,\n enumerable = true,\n): (this: object) => unknown {\n return function tuiPureGetterPatched(this: object): unknown {\n const value = originalGetter.call(this);\n\n Object.defineProperty(this, propertyKey, {enumerable, value});\n\n return value;\n };\n}\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * @throws error if used not on getter or function\n *\n * CAUTION: they must be pure.\n * TODO(v5): drop compatibility for legacy \"experimentalDecorators\": true\n */\nexport function tuiPure<T>(\n target: object,\n propertyKey: string,\n {get, enumerable, value}: TypedPropertyDescriptor<T>,\n): TypedPropertyDescriptor<T>;\n\n/**\n * Implements lazy initialization for getter or memoization of a function call similar to pure {@link: Pipe}.\n * Replaces getter with its calculated value upon first call or keeps track of last call arguments and returned\n * value for function, skipping calculation when arguments are strictly the same.\n *\n * CAUTION: they must be pure.\n */\nexport function tuiPure<A extends unknown[], R>(\n target: (...args: A) => R,\n context: ClassGetterDecoratorContext | ClassMethodDecoratorContext,\n): (...args: A) => R;\n\nexport function tuiPure(\n target: object | ((...args: unknown[]) => unknown),\n propertyKeyOrContext:\n | ClassGetterDecoratorContext\n | ClassMethodDecoratorContext\n | string,\n descriptor?: TypedPropertyDescriptor<(...args: unknown[]) => unknown>,\n): TypedPropertyDescriptor<unknown> | ((...args: unknown[]) => unknown) {\n if (typeof target === 'function') {\n const context = propertyKeyOrContext as\n | ClassGetterDecoratorContext\n | ClassMethodDecoratorContext;\n\n if (context.kind === 'getter') {\n return decorateGetter(target as () => unknown, context.name);\n }\n\n if (context.kind === 'method') {\n return decorateMethod(target as (...args: unknown[]) => unknown);\n }\n\n throw new TuiPureException();\n }\n\n // TODO(v5): drop compatibility for legacy \"experimentalDecorators\": true\n const {get, enumerable, value} = descriptor!;\n const propertyKey = propertyKeyOrContext as string;\n\n if (get) {\n return {\n configurable: true,\n enumerable,\n get: decorateGetter(get, propertyKey, enumerable),\n };\n }\n\n if (typeof value !== 'function') {\n throw new TuiPureException();\n }\n\n const original = value;\n\n return {\n configurable: true,\n enumerable,\n get(): unknown {\n let previousArgs: readonly unknown[] = [];\n let originalFnWasCalledLeastAtOnce = false;\n let pureValue: unknown;\n\n const patched = (...args: unknown[]): unknown => {\n const isPure =\n originalFnWasCalledLeastAtOnce &&\n previousArgs.length === args.length &&\n args.every((arg, index) => arg === previousArgs[index]);\n\n if (isPure) {\n return pureValue;\n }\n\n previousArgs = args;\n pureValue = original.apply(this, args);\n originalFnWasCalledLeastAtOnce = true;\n\n return pureValue;\n };\n\n Object.defineProperty(this, propertyKey, {\n configurable: true,\n value: patched,\n });\n\n return patched as unknown;\n },\n };\n}\n\nexport class TuiPureException extends Error {\n constructor() {\n super(ngDevMode ? 'tuiPure can only be used with functions or getters' : '');\n }\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\n\n/**\n * Adds 'px' to the number and turns it into a string\n */\nexport function tuiPx(value: number): string {\n ngDevMode && console.assert(Number.isFinite(value), 'Value must be finite number');\n\n return `${value}px`;\n}\n","/**\n * Sanitizes pasted or dropped text by removing invisible and control characters\n * that can appear in clipboard or drag-and-drop data.\n *\n * Removes:\n * 1. ASCII control characters (0x00–0x1F) — non-printable characters like\n * NULL, BEL, BS, CR, LF, TAB, ESC, etc.\n * 2. Extended control characters (0x7F–0x9F) — C1 control codes from ISO-8859-1,\n * often found in legacy or malformed text encodings.\n * 3. Zero-width and special Unicode characters:\n * - U+200B ZERO WIDTH SPACE\n * - U+200C ZERO WIDTH NON-JOINER\n * - U+200D ZERO WIDTH JOINER\n * - U+FEFF BYTE ORDER MARK (BOM)\n *\n * @param {string} value - The input string from clipboard or drag event.\n * @returns {string} - A cleaned string without control or invisible characters.\n *\n * @example\n * tuiSanitizeText('Hello\\u0000World\\u200B!');\n * // → \"HelloWorld!\"\n */\nexport function tuiSanitizeText(value: string): string {\n // eslint-disable-next-line no-control-regex\n const controlCharsRegex = /[\\x00-\\x1F\\x7F-\\x9F]/g;\n const zeroWidthCharsRegex = /[\\u200B-\\u200D\\uFEFF]/g;\n\n return value.replaceAll(controlCharsRegex, '').replaceAll(zeroWidthCharsRegex, '');\n}\n","import {type InputSignal, type WritableSignal} from '@angular/core';\nimport {SIGNAL} from '@angular/core/primitives/signals';\n\nexport function tuiSetSignal<T>(\n signal: InputSignal<T> | WritableSignal<T>,\n value: T,\n): void {\n if ('set' in signal) {\n signal.set(value);\n } else if ('applyValueToInputSignal' in signal[SIGNAL]) {\n signal[SIGNAL].applyValueToInputSignal(signal[SIGNAL], value);\n } else {\n ngDevMode && console.assert(false, 'tuiSetSignal was called on read-only signal');\n }\n}\n","import {\n createComponent,\n DestroyRef,\n EnvironmentInjector,\n inject,\n InjectionToken,\n type Type,\n} from '@angular/core';\n\nconst MAP = new InjectionToken(ngDevMode ? 'MAP' : '', {\n factory: () => {\n const map = new Map();\n\n inject(DestroyRef).onDestroy(() =>\n map.forEach((component) => component.destroy()),\n );\n\n return map;\n },\n});\n\nexport function tuiWithStyles(component: Type<unknown>): undefined {\n const map = inject(MAP);\n const environmentInjector = inject(EnvironmentInjector);\n\n if (!map.has(component)) {\n map.set(component, createComponent(component, {environmentInjector}));\n }\n\n return undefined;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAgB,SAAA,cAAc,CAAI,KAAmB,EAAE,KAAa,EAAA;AAChE,IAAA,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACzF;;ACFgB,SAAA,qBAAqB,CAAI,CAAe,EAAE,CAAe,EAAA;AACrE,IAAA,O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,KAAK,IAAI,MAAM,EAAE;AACjB,QAAA,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC;;AACd,SAAA,IAAI,yBAAyB,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE;AACpD,QAAA,MAAM,CAAC,MAAM,CAAC,CAAC,uBAAuB,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC;;SAC1D;QACH,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,6CAA6C,CAAC;;AAEzF;;ACLA,MAAM,GAAG,GAAG,IAAI,cAAc,CAAC,SAAS,GAAG,KAAK,GAAG,EAAE,EAAE;IACnD,OAAO,EAAE,MAAK;AACV,QAAA,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE;QAErB,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,MACzB,GAAG,CAAC,OAAO,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,OAAO,EAAE,CAAC,CAClD;AAED,QAAA,OAAO,GAAG;KACb;AACJ,CAAA,CAAC;AAEI,SAAU,aAAa,CAAC,SAAwB,EAAA;AAClD,IAAA,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;AACvB,IAAA,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEvD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;AACrB,QAAA,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,eAAe,CAAC,SAAS,EAAE,EAAC,mBAAmB,EAAC,CAAC,CAAC;;AAGzE,IAAA,OAAO,SAAS;AACpB;;AC9BA;;AAEG;;;;"}
@@ -1,5 +1,4 @@
1
1
  export * from '@taiga-ui/cdk/utils/browser';
2
- export * from '@taiga-ui/cdk/utils/color';
3
2
  export * from '@taiga-ui/cdk/utils/di';
4
3
  export * from '@taiga-ui/cdk/utils/dom';
5
4
  export * from '@taiga-ui/cdk/utils/focus';
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils.mjs","sources":["../../../projects/cdk/utils/taiga-ui-cdk-utils.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;;AAEG"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils.mjs","sources":["../../../projects/cdk/utils/taiga-ui-cdk-utils.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;AAEG"}
@@ -4,7 +4,7 @@ export * from '@taiga-ui/cdk/date-time';
4
4
  export * from '@taiga-ui/cdk/directives';
5
5
  export * from '@taiga-ui/cdk/observables';
6
6
  export * from '@taiga-ui/cdk/pipes';
7
- export * from '@taiga-ui/cdk/services';
7
+ export * from '@taiga-ui/cdk/portals';
8
8
  export * from '@taiga-ui/cdk/tokens';
9
9
  export * from '@taiga-ui/cdk/utils';
10
10
 
package/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export * from '@taiga-ui/cdk/date-time';
4
4
  export * from '@taiga-ui/cdk/directives';
5
5
  export * from '@taiga-ui/cdk/observables';
6
6
  export * from '@taiga-ui/cdk/pipes';
7
- export * from '@taiga-ui/cdk/services';
7
+ export * from '@taiga-ui/cdk/portals';
8
8
  export * from '@taiga-ui/cdk/tokens';
9
9
  export type * from '@taiga-ui/cdk/types';
10
10
  export * from '@taiga-ui/cdk/utils';
@@ -3,8 +3,6 @@ export * from './control-value';
3
3
  export * from './drag-and-drop-from';
4
4
  export * from './events';
5
5
  export * from './if-map';
6
- export * from './must-be-present';
7
- export * from './query-list-observable';
8
6
  export * from './scroll-from';
9
7
  export * from './take-until-destroyed';
10
8
  export * from './typed-from-event';