@taiga-ui/cdk 3.51.0 → 3.52.0-canary.164e55d

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 (803) hide show
  1. package/abstract/control.d.ts +6 -0
  2. package/abstract/interactive.d.ts +9 -0
  3. package/abstract/portal-host.d.ts +4 -0
  4. package/abstract/portal-service.d.ts +3 -0
  5. package/abstract/taiga-ui-cdk-abstract.d.ts +3 -0
  6. package/abstract/theme-switcher.d.ts +6 -0
  7. package/bundles/taiga-ui-cdk-abstract.umd.js +34 -0
  8. package/bundles/taiga-ui-cdk-abstract.umd.js.map +1 -1
  9. package/bundles/taiga-ui-cdk-classes.umd.js +9 -0
  10. package/bundles/taiga-ui-cdk-classes.umd.js.map +1 -1
  11. package/bundles/taiga-ui-cdk-coercion.umd.js +10 -0
  12. package/bundles/taiga-ui-cdk-coercion.umd.js.map +1 -1
  13. package/bundles/taiga-ui-cdk-components-alert-host.umd.js +8 -0
  14. package/bundles/taiga-ui-cdk-components-alert-host.umd.js.map +1 -1
  15. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js +11 -0
  16. package/bundles/taiga-ui-cdk-components-dialog-host.umd.js.map +1 -1
  17. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js +12 -0
  18. package/bundles/taiga-ui-cdk-components-dropdown-host.umd.js.map +1 -1
  19. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js +4 -0
  20. package/bundles/taiga-ui-cdk-components-scroll-controls.umd.js.map +1 -1
  21. package/bundles/taiga-ui-cdk-components.umd.js +4 -0
  22. package/bundles/taiga-ui-cdk-components.umd.js.map +1 -1
  23. package/bundles/taiga-ui-cdk-constants.umd.js +109 -1
  24. package/bundles/taiga-ui-cdk-constants.umd.js.map +1 -1
  25. package/bundles/taiga-ui-cdk-date-time.umd.js +284 -0
  26. package/bundles/taiga-ui-cdk-date-time.umd.js.map +1 -1
  27. package/bundles/taiga-ui-cdk-decorators.umd.js +26 -0
  28. package/bundles/taiga-ui-cdk-decorators.umd.js.map +1 -1
  29. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js +4 -0
  30. package/bundles/taiga-ui-cdk-directives-active-zone.umd.js.map +1 -1
  31. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js +44 -1
  32. package/bundles/taiga-ui-cdk-directives-auto-focus.umd.js.map +1 -1
  33. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js +4 -0
  34. package/bundles/taiga-ui-cdk-directives-autofilled.umd.js.map +1 -1
  35. package/bundles/taiga-ui-cdk-directives-checked.umd.js +4 -0
  36. package/bundles/taiga-ui-cdk-directives-checked.umd.js.map +1 -1
  37. package/bundles/taiga-ui-cdk-directives-click-outside.umd.js +4 -0
  38. package/bundles/taiga-ui-cdk-directives-click-outside.umd.js.map +1 -1
  39. package/bundles/taiga-ui-cdk-directives-control.umd.js +4 -0
  40. package/bundles/taiga-ui-cdk-directives-control.umd.js.map +1 -1
  41. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js +4 -0
  42. package/bundles/taiga-ui-cdk-directives-copy-processor.umd.js.map +1 -1
  43. package/bundles/taiga-ui-cdk-directives-drag.umd.js +10 -0
  44. package/bundles/taiga-ui-cdk-directives-drag.umd.js.map +1 -1
  45. package/bundles/taiga-ui-cdk-directives-droppable.umd.js +5 -0
  46. package/bundles/taiga-ui-cdk-directives-droppable.umd.js.map +1 -1
  47. package/bundles/taiga-ui-cdk-directives-element.umd.js +18 -0
  48. package/bundles/taiga-ui-cdk-directives-element.umd.js.map +1 -1
  49. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js +17 -0
  50. package/bundles/taiga-ui-cdk-directives-focus-trap.umd.js.map +1 -1
  51. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js +9 -0
  52. package/bundles/taiga-ui-cdk-directives-focus-visible.umd.js.map +1 -1
  53. package/bundles/taiga-ui-cdk-directives-focusable.umd.js +10 -0
  54. package/bundles/taiga-ui-cdk-directives-focusable.umd.js.map +1 -1
  55. package/bundles/taiga-ui-cdk-directives-focused.umd.js +9 -0
  56. package/bundles/taiga-ui-cdk-directives-focused.umd.js.map +1 -1
  57. package/bundles/taiga-ui-cdk-directives-for-async.umd.js +7 -0
  58. package/bundles/taiga-ui-cdk-directives-for-async.umd.js.map +1 -1
  59. package/bundles/taiga-ui-cdk-directives-for.umd.js +4 -0
  60. package/bundles/taiga-ui-cdk-directives-for.umd.js.map +1 -1
  61. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js +7 -0
  62. package/bundles/taiga-ui-cdk-directives-high-dpi.umd.js.map +1 -1
  63. package/bundles/taiga-ui-cdk-directives-hovered.umd.js +7 -1
  64. package/bundles/taiga-ui-cdk-directives-hovered.umd.js.map +1 -1
  65. package/bundles/taiga-ui-cdk-directives-item.umd.js +7 -0
  66. package/bundles/taiga-ui-cdk-directives-item.umd.js.map +1 -1
  67. package/bundles/taiga-ui-cdk-directives-let.umd.js +17 -0
  68. package/bundles/taiga-ui-cdk-directives-let.umd.js.map +1 -1
  69. package/bundles/taiga-ui-cdk-directives-media.umd.js +7 -0
  70. package/bundles/taiga-ui-cdk-directives-media.umd.js.map +1 -1
  71. package/bundles/taiga-ui-cdk-directives-obscured.umd.js +7 -0
  72. package/bundles/taiga-ui-cdk-directives-obscured.umd.js.map +1 -1
  73. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js +10 -0
  74. package/bundles/taiga-ui-cdk-directives-overscroll.umd.js.map +1 -1
  75. package/bundles/taiga-ui-cdk-directives-pan.umd.js +7 -0
  76. package/bundles/taiga-ui-cdk-directives-pan.umd.js.map +1 -1
  77. package/bundles/taiga-ui-cdk-directives-platform.umd.js +4 -0
  78. package/bundles/taiga-ui-cdk-directives-platform.umd.js.map +1 -1
  79. package/bundles/taiga-ui-cdk-directives-portal.umd.js +4 -0
  80. package/bundles/taiga-ui-cdk-directives-portal.umd.js.map +1 -1
  81. package/bundles/taiga-ui-cdk-directives-pressed.umd.js +4 -0
  82. package/bundles/taiga-ui-cdk-directives-pressed.umd.js.map +1 -1
  83. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js +12 -0
  84. package/bundles/taiga-ui-cdk-directives-prevent-default.umd.js.map +1 -1
  85. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js +11 -0
  86. package/bundles/taiga-ui-cdk-directives-repeat-times.umd.js.map +1 -1
  87. package/bundles/taiga-ui-cdk-directives-resize.umd.js +7 -0
  88. package/bundles/taiga-ui-cdk-directives-resize.umd.js.map +1 -1
  89. package/bundles/taiga-ui-cdk-directives-resizer.umd.js +5 -0
  90. package/bundles/taiga-ui-cdk-directives-resizer.umd.js.map +1 -1
  91. package/bundles/taiga-ui-cdk-directives-swipe.umd.js +7 -0
  92. package/bundles/taiga-ui-cdk-directives-swipe.umd.js.map +1 -1
  93. package/bundles/taiga-ui-cdk-directives-validator.umd.js +4 -0
  94. package/bundles/taiga-ui-cdk-directives-validator.umd.js.map +1 -1
  95. package/bundles/taiga-ui-cdk-directives-value-changes.umd.js +4 -0
  96. package/bundles/taiga-ui-cdk-directives-value-changes.umd.js.map +1 -1
  97. package/bundles/taiga-ui-cdk-directives-zoom.umd.js +7 -0
  98. package/bundles/taiga-ui-cdk-directives-zoom.umd.js.map +1 -1
  99. package/bundles/taiga-ui-cdk-directives.umd.js +4 -0
  100. package/bundles/taiga-ui-cdk-directives.umd.js.map +1 -1
  101. package/bundles/taiga-ui-cdk-enums.umd.js +8 -0
  102. package/bundles/taiga-ui-cdk-enums.umd.js.map +1 -1
  103. package/bundles/taiga-ui-cdk-exceptions.umd.js +4 -0
  104. package/bundles/taiga-ui-cdk-exceptions.umd.js.map +1 -1
  105. package/bundles/taiga-ui-cdk-interfaces.umd.js +3 -1
  106. package/bundles/taiga-ui-cdk-interfaces.umd.js.map +1 -1
  107. package/bundles/taiga-ui-cdk-observables.umd.js +34 -1
  108. package/bundles/taiga-ui-cdk-observables.umd.js.map +1 -1
  109. package/bundles/taiga-ui-cdk-pipes-filter.umd.js +4 -0
  110. package/bundles/taiga-ui-cdk-pipes-filter.umd.js.map +1 -1
  111. package/bundles/taiga-ui-cdk-pipes-is-present.umd.js +4 -0
  112. package/bundles/taiga-ui-cdk-pipes-is-present.umd.js.map +1 -1
  113. package/bundles/taiga-ui-cdk-pipes-keys.umd.js +4 -0
  114. package/bundles/taiga-ui-cdk-pipes-keys.umd.js.map +1 -1
  115. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js +4 -0
  116. package/bundles/taiga-ui-cdk-pipes-mapper.umd.js.map +1 -1
  117. package/bundles/taiga-ui-cdk-pipes-replace.umd.js +7 -1
  118. package/bundles/taiga-ui-cdk-pipes-replace.umd.js.map +1 -1
  119. package/bundles/taiga-ui-cdk-pipes.umd.js +4 -0
  120. package/bundles/taiga-ui-cdk-pipes.umd.js.map +1 -1
  121. package/bundles/taiga-ui-cdk-services.umd.js +53 -5
  122. package/bundles/taiga-ui-cdk-services.umd.js.map +1 -1
  123. package/bundles/taiga-ui-cdk-tokens.umd.js +109 -5
  124. package/bundles/taiga-ui-cdk-tokens.umd.js.map +1 -1
  125. package/bundles/taiga-ui-cdk-types.umd.js +3 -1
  126. package/bundles/taiga-ui-cdk-types.umd.js.map +1 -1
  127. package/bundles/taiga-ui-cdk-utils-browser.umd.js +4 -0
  128. package/bundles/taiga-ui-cdk-utils-browser.umd.js.map +1 -1
  129. package/bundles/taiga-ui-cdk-utils-color.umd.js +10 -0
  130. package/bundles/taiga-ui-cdk-utils-color.umd.js.map +1 -1
  131. package/bundles/taiga-ui-cdk-utils-dom.umd.js +59 -3
  132. package/bundles/taiga-ui-cdk-utils-dom.umd.js.map +1 -1
  133. package/bundles/taiga-ui-cdk-utils-focus.umd.js +51 -0
  134. package/bundles/taiga-ui-cdk-utils-focus.umd.js.map +1 -1
  135. package/bundles/taiga-ui-cdk-utils-format.umd.js +7 -0
  136. package/bundles/taiga-ui-cdk-utils-format.umd.js.map +1 -1
  137. package/bundles/taiga-ui-cdk-utils-math.umd.js +38 -0
  138. package/bundles/taiga-ui-cdk-utils-math.umd.js.map +1 -1
  139. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js +42 -6
  140. package/bundles/taiga-ui-cdk-utils-miscellaneous.umd.js.map +1 -1
  141. package/bundles/taiga-ui-cdk-utils-os.umd.js +14 -0
  142. package/bundles/taiga-ui-cdk-utils-os.umd.js.map +1 -1
  143. package/bundles/taiga-ui-cdk-utils-svg.umd.js +19 -1
  144. package/bundles/taiga-ui-cdk-utils-svg.umd.js.map +1 -1
  145. package/bundles/taiga-ui-cdk-utils.umd.js +4 -0
  146. package/bundles/taiga-ui-cdk-utils.umd.js.map +1 -1
  147. package/bundles/taiga-ui-cdk.umd.js +4 -0
  148. package/bundles/taiga-ui-cdk.umd.js.map +1 -1
  149. package/classes/assert.d.ts +5 -0
  150. package/classes/taiga-ui-cdk-classes.d.ts +3 -0
  151. package/coercion/coerce-boolean-property.d.ts +4 -0
  152. package/coercion/taiga-ui-cdk-coercion.d.ts +3 -0
  153. package/components/alert-host/taiga-ui-cdk-components-alert-host.d.ts +3 -0
  154. package/components/dialog-host/dialog-host.component.d.ts +3 -0
  155. package/components/dialog-host/taiga-ui-cdk-components-dialog-host.d.ts +3 -0
  156. package/components/dropdown-host/dropdown-host.component.d.ts +3 -0
  157. package/components/dropdown-host/dropdown-portal.service.d.ts +3 -0
  158. package/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.d.ts +3 -0
  159. package/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.d.ts +3 -0
  160. package/components/taiga-ui-cdk-components.d.ts +3 -0
  161. package/constants/always-false-handler.d.ts +3 -0
  162. package/constants/always-true-handler.d.ts +3 -0
  163. package/constants/browser.d.ts +4 -0
  164. package/constants/empty.d.ts +5 -0
  165. package/constants/matcher.d.ts +19 -0
  166. package/constants/parent-animation.d.ts +6 -0
  167. package/constants/stringify.d.ts +3 -0
  168. package/constants/taiga-ui-cdk-constants.d.ts +3 -0
  169. package/constants/unicode-chars.d.ts +51 -0
  170. package/constants/used-icons.d.ts +6 -0
  171. package/constants/version.d.ts +1 -1
  172. package/constants/version.js +1 -1
  173. package/date-time/date-fillers.d.ts +11 -0
  174. package/date-time/date-format.d.ts +3 -0
  175. package/date-time/date-separator.d.ts +3 -0
  176. package/date-time/day-range.d.ts +33 -0
  177. package/date-time/day.d.ts +91 -0
  178. package/date-time/month-range.d.ts +3 -0
  179. package/date-time/month.d.ts +56 -0
  180. package/date-time/taiga-ui-cdk-date-time.d.ts +3 -0
  181. package/date-time/time.d.ts +36 -0
  182. package/date-time/year.d.ts +42 -0
  183. package/decorators/debounce.d.ts +4 -0
  184. package/decorators/default-prop.d.ts +9 -0
  185. package/decorators/pure.d.ts +18 -0
  186. package/decorators/required-setter.d.ts +9 -0
  187. package/decorators/taiga-ui-cdk-decorators.d.ts +3 -0
  188. package/directives/active-zone/taiga-ui-cdk-directives-active-zone.d.ts +3 -0
  189. package/directives/auto-focus/handlers/ios.handler.d.ts +39 -0
  190. package/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.d.ts +3 -0
  191. package/directives/autofilled/taiga-ui-cdk-directives-autofilled.d.ts +3 -0
  192. package/directives/checked/taiga-ui-cdk-directives-checked.d.ts +3 -0
  193. package/directives/click-outside/taiga-ui-cdk-directives-click-outside.d.ts +3 -0
  194. package/directives/control/taiga-ui-cdk-directives-control.d.ts +3 -0
  195. package/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.d.ts +3 -0
  196. package/directives/drag/drag.directive.d.ts +3 -0
  197. package/directives/drag/drag.module.d.ts +3 -0
  198. package/directives/drag/taiga-ui-cdk-directives-drag.d.ts +3 -0
  199. package/directives/droppable/taiga-ui-cdk-directives-droppable.d.ts +3 -0
  200. package/directives/element/taiga-ui-cdk-directives-element.d.ts +3 -0
  201. package/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.d.ts +3 -0
  202. package/directives/focus-visible/focus-visible.directive.d.ts +5 -0
  203. package/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.d.ts +3 -0
  204. package/directives/focusable/focusable.directive.d.ts +6 -0
  205. package/directives/focusable/taiga-ui-cdk-directives-focusable.d.ts +3 -0
  206. package/directives/focused/focused.directive.d.ts +5 -0
  207. package/directives/focused/taiga-ui-cdk-directives-focused.d.ts +3 -0
  208. package/directives/for/taiga-ui-cdk-directives-for.d.ts +3 -0
  209. package/directives/for-async/for-async.module.d.ts +3 -0
  210. package/directives/for-async/taiga-ui-cdk-directives-for-async.d.ts +3 -0
  211. package/directives/high-dpi/high-dpi.directive.d.ts +3 -0
  212. package/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.d.ts +3 -0
  213. package/directives/hovered/taiga-ui-cdk-directives-hovered.d.ts +3 -0
  214. package/directives/item/item.directive.d.ts +3 -0
  215. package/directives/item/taiga-ui-cdk-directives-item.d.ts +3 -0
  216. package/directives/let/let-context.d.ts +3 -0
  217. package/directives/let/let.directive.d.ts +10 -0
  218. package/directives/let/taiga-ui-cdk-directives-let.d.ts +3 -0
  219. package/directives/media/taiga-ui-cdk-directives-media.d.ts +3 -0
  220. package/directives/obscured/obscured.directive.d.ts +3 -0
  221. package/directives/obscured/taiga-ui-cdk-directives-obscured.d.ts +3 -0
  222. package/directives/overscroll/overscroll.directive.d.ts +3 -0
  223. package/directives/overscroll/taiga-ui-cdk-directives-overscroll.d.ts +3 -0
  224. package/directives/pan/pan.module.d.ts +3 -0
  225. package/directives/pan/taiga-ui-cdk-directives-pan.d.ts +3 -0
  226. package/directives/platform/taiga-ui-cdk-directives-platform.d.ts +3 -0
  227. package/directives/portal/taiga-ui-cdk-directives-portal.d.ts +3 -0
  228. package/directives/pressed/taiga-ui-cdk-directives-pressed.d.ts +3 -0
  229. package/directives/prevent-default/prevent-default.directive.d.ts +5 -0
  230. package/directives/prevent-default/prevent-default.module.d.ts +3 -0
  231. package/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.d.ts +3 -0
  232. package/directives/repeat-times/repeat-times.directive.d.ts +7 -0
  233. package/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.d.ts +3 -0
  234. package/directives/resize/resize.module.d.ts +3 -0
  235. package/directives/resize/taiga-ui-cdk-directives-resize.d.ts +3 -0
  236. package/directives/resizer/taiga-ui-cdk-directives-resizer.d.ts +3 -0
  237. package/directives/swipe/swipe.module.d.ts +3 -0
  238. package/directives/swipe/taiga-ui-cdk-directives-swipe.d.ts +3 -0
  239. package/directives/taiga-ui-cdk-directives.d.ts +3 -0
  240. package/directives/validator/taiga-ui-cdk-directives-validator.d.ts +3 -0
  241. package/directives/value-changes/taiga-ui-cdk-directives-value-changes.d.ts +3 -0
  242. package/directives/zoom/taiga-ui-cdk-directives-zoom.d.ts +3 -0
  243. package/directives/zoom/zoom.module.d.ts +3 -0
  244. package/enums/taiga-ui-cdk-enums.d.ts +3 -0
  245. package/esm2015/abstract/control.js +7 -1
  246. package/esm2015/abstract/interactive.js +11 -1
  247. package/esm2015/abstract/portal-host.js +6 -1
  248. package/esm2015/abstract/portal-service.js +4 -1
  249. package/esm2015/abstract/taiga-ui-cdk-abstract.js +4 -1
  250. package/esm2015/abstract/theme-switcher.js +7 -1
  251. package/esm2015/classes/assert.js +6 -1
  252. package/esm2015/classes/taiga-ui-cdk-classes.js +4 -1
  253. package/esm2015/coercion/coerce-boolean-property.js +7 -1
  254. package/esm2015/coercion/taiga-ui-cdk-coercion.js +4 -1
  255. package/esm2015/components/alert-host/alert-host.component.js +5 -1
  256. package/esm2015/components/alert-host/taiga-ui-cdk-components-alert-host.js +4 -1
  257. package/esm2015/components/dialog-host/dialog-host.component.js +8 -1
  258. package/esm2015/components/dialog-host/taiga-ui-cdk-components-dialog-host.js +4 -1
  259. package/esm2015/components/dropdown-host/dropdown-host.component.js +6 -1
  260. package/esm2015/components/dropdown-host/dropdown-portal.service.js +4 -1
  261. package/esm2015/components/dropdown-host/taiga-ui-cdk-components-dropdown-host.js +4 -1
  262. package/esm2015/components/scroll-controls/taiga-ui-cdk-components-scroll-controls.js +4 -1
  263. package/esm2015/components/taiga-ui-cdk-components.js +4 -1
  264. package/esm2015/constants/always-false-handler.js +5 -1
  265. package/esm2015/constants/always-true-handler.js +5 -1
  266. package/esm2015/constants/browser.js +5 -1
  267. package/esm2015/constants/empty.js +6 -1
  268. package/esm2015/constants/matcher.js +20 -1
  269. package/esm2015/constants/parent-animation.js +7 -1
  270. package/esm2015/constants/stringify.js +4 -1
  271. package/esm2015/constants/svg-node-filter.js +3 -1
  272. package/esm2015/constants/taiga-ui-cdk-constants.js +4 -1
  273. package/esm2015/constants/unicode-chars.js +52 -1
  274. package/esm2015/constants/used-icons.js +7 -1
  275. package/esm2015/constants/version.js +2 -2
  276. package/esm2015/date-time/date-fillers.js +12 -1
  277. package/esm2015/date-time/date-format.js +4 -1
  278. package/esm2015/date-time/date-separator.js +4 -1
  279. package/esm2015/date-time/day-range.js +34 -1
  280. package/esm2015/date-time/day.js +94 -1
  281. package/esm2015/date-time/month-range.js +4 -1
  282. package/esm2015/date-time/month.js +57 -1
  283. package/esm2015/date-time/taiga-ui-cdk-date-time.js +4 -1
  284. package/esm2015/date-time/time.js +37 -1
  285. package/esm2015/date-time/year.js +43 -1
  286. package/esm2015/decorators/debounce.js +5 -1
  287. package/esm2015/decorators/default-prop.js +10 -1
  288. package/esm2015/decorators/required-setter.js +10 -1
  289. package/esm2015/decorators/taiga-ui-cdk-decorators.js +4 -1
  290. package/esm2015/directives/active-zone/taiga-ui-cdk-directives-active-zone.js +4 -1
  291. package/esm2015/directives/auto-focus/autofocus.options.js +3 -2
  292. package/esm2015/directives/auto-focus/handlers/ios.handler.js +40 -1
  293. package/esm2015/directives/auto-focus/taiga-ui-cdk-directives-auto-focus.js +4 -1
  294. package/esm2015/directives/autofilled/taiga-ui-cdk-directives-autofilled.js +4 -1
  295. package/esm2015/directives/checked/taiga-ui-cdk-directives-checked.js +4 -1
  296. package/esm2015/directives/click-outside/taiga-ui-cdk-directives-click-outside.js +4 -1
  297. package/esm2015/directives/control/taiga-ui-cdk-directives-control.js +4 -1
  298. package/esm2015/directives/copy-processor/taiga-ui-cdk-directives-copy-processor.js +4 -1
  299. package/esm2015/directives/drag/drag.directive.js +4 -1
  300. package/esm2015/directives/drag/drag.module.js +4 -1
  301. package/esm2015/directives/drag/taiga-ui-cdk-directives-drag.js +4 -1
  302. package/esm2015/directives/droppable/droppable.directive.js +2 -1
  303. package/esm2015/directives/droppable/taiga-ui-cdk-directives-droppable.js +4 -1
  304. package/esm2015/directives/element/element.directive.js +15 -1
  305. package/esm2015/directives/element/taiga-ui-cdk-directives-element.js +4 -1
  306. package/esm2015/directives/focus-trap/focus-trap.directive.js +14 -1
  307. package/esm2015/directives/focus-trap/taiga-ui-cdk-directives-focus-trap.js +4 -1
  308. package/esm2015/directives/focus-visible/focus-visible.directive.js +6 -1
  309. package/esm2015/directives/focus-visible/taiga-ui-cdk-directives-focus-visible.js +4 -1
  310. package/esm2015/directives/focusable/focusable.directive.js +7 -1
  311. package/esm2015/directives/focusable/taiga-ui-cdk-directives-focusable.js +4 -1
  312. package/esm2015/directives/focused/focused.directive.js +6 -1
  313. package/esm2015/directives/focused/taiga-ui-cdk-directives-focused.js +4 -1
  314. package/esm2015/directives/for/taiga-ui-cdk-directives-for.js +4 -1
  315. package/esm2015/directives/for-async/for-async.module.js +4 -1
  316. package/esm2015/directives/for-async/taiga-ui-cdk-directives-for-async.js +4 -1
  317. package/esm2015/directives/high-dpi/high-dpi.directive.js +4 -1
  318. package/esm2015/directives/high-dpi/taiga-ui-cdk-directives-high-dpi.js +4 -1
  319. package/esm2015/directives/hovered/hovered.service.js +4 -2
  320. package/esm2015/directives/hovered/taiga-ui-cdk-directives-hovered.js +4 -1
  321. package/esm2015/directives/item/item.directive.js +4 -1
  322. package/esm2015/directives/item/taiga-ui-cdk-directives-item.js +4 -1
  323. package/esm2015/directives/let/let-context.js +4 -1
  324. package/esm2015/directives/let/let.directive.js +11 -1
  325. package/esm2015/directives/let/taiga-ui-cdk-directives-let.js +4 -1
  326. package/esm2015/directives/media/media.directive.js +4 -1
  327. package/esm2015/directives/media/taiga-ui-cdk-directives-media.js +4 -1
  328. package/esm2015/directives/obscured/obscured.directive.js +4 -1
  329. package/esm2015/directives/obscured/taiga-ui-cdk-directives-obscured.js +4 -1
  330. package/esm2015/directives/overscroll/overscroll.directive.js +7 -1
  331. package/esm2015/directives/overscroll/taiga-ui-cdk-directives-overscroll.js +4 -1
  332. package/esm2015/directives/pan/pan.module.js +4 -1
  333. package/esm2015/directives/pan/taiga-ui-cdk-directives-pan.js +4 -1
  334. package/esm2015/directives/platform/taiga-ui-cdk-directives-platform.js +4 -1
  335. package/esm2015/directives/portal/taiga-ui-cdk-directives-portal.js +4 -1
  336. package/esm2015/directives/pressed/taiga-ui-cdk-directives-pressed.js +4 -1
  337. package/esm2015/directives/prevent-default/prevent-default.directive.js +6 -1
  338. package/esm2015/directives/prevent-default/prevent-default.module.js +4 -1
  339. package/esm2015/directives/prevent-default/taiga-ui-cdk-directives-prevent-default.js +4 -1
  340. package/esm2015/directives/repeat-times/repeat-times.directive.js +8 -1
  341. package/esm2015/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.js +4 -1
  342. package/esm2015/directives/resize/resize.module.js +4 -1
  343. package/esm2015/directives/resize/taiga-ui-cdk-directives-resize.js +4 -1
  344. package/esm2015/directives/resizer/resizer.directive.js +2 -1
  345. package/esm2015/directives/resizer/taiga-ui-cdk-directives-resizer.js +4 -1
  346. package/esm2015/directives/swipe/swipe.module.js +4 -1
  347. package/esm2015/directives/swipe/taiga-ui-cdk-directives-swipe.js +4 -1
  348. package/esm2015/directives/taiga-ui-cdk-directives.js +4 -1
  349. package/esm2015/directives/validator/taiga-ui-cdk-directives-validator.js +4 -1
  350. package/esm2015/directives/value-changes/taiga-ui-cdk-directives-value-changes.js +4 -1
  351. package/esm2015/directives/zoom/taiga-ui-cdk-directives-zoom.js +4 -1
  352. package/esm2015/directives/zoom/zoom.module.js +4 -1
  353. package/esm2015/enums/day-of-week.js +3 -1
  354. package/esm2015/enums/month-number.js +3 -1
  355. package/esm2015/enums/taiga-ui-cdk-enums.js +4 -1
  356. package/esm2015/exceptions/taiga-ui-cdk-exceptions.js +4 -1
  357. package/esm2015/interfaces/taiga-ui-cdk-interfaces.js +4 -1
  358. package/esm2015/observables/control-value.js +4 -1
  359. package/esm2015/observables/drag-and-drop-from.js +3 -1
  360. package/esm2015/observables/focus-visible-observable.js +6 -2
  361. package/esm2015/observables/is-alive.js +4 -1
  362. package/esm2015/observables/items-query-list-observable.js +7 -1
  363. package/esm2015/observables/mouse-drag-finish-from.js +5 -1
  364. package/esm2015/observables/scroll-from.js +4 -1
  365. package/esm2015/observables/taiga-ui-cdk-observables.js +4 -1
  366. package/esm2015/observables/typed-from-event.js +5 -1
  367. package/esm2015/pipes/filter/taiga-ui-cdk-pipes-filter.js +4 -1
  368. package/esm2015/pipes/is-present/taiga-ui-cdk-pipes-is-present.js +4 -1
  369. package/esm2015/pipes/keys/taiga-ui-cdk-pipes-keys.js +4 -1
  370. package/esm2015/pipes/mapper/taiga-ui-cdk-pipes-mapper.js +4 -1
  371. package/esm2015/pipes/replace/replace.pipe.js +4 -2
  372. package/esm2015/pipes/replace/taiga-ui-cdk-pipes-replace.js +4 -1
  373. package/esm2015/pipes/taiga-ui-cdk-pipes.js +4 -1
  374. package/esm2015/services/destroy.service.js +9 -1
  375. package/esm2015/services/directive-styles.service.js +4 -1
  376. package/esm2015/services/focus-visible.service.js +6 -1
  377. package/esm2015/services/id.service.js +4 -1
  378. package/esm2015/services/obscured.service.js +10 -2
  379. package/esm2015/services/pan.service.js +4 -2
  380. package/esm2015/services/parents-scroll.service.js +7 -2
  381. package/esm2015/services/resize.service.js +8 -2
  382. package/esm2015/services/static-request.service.js +5 -2
  383. package/esm2015/services/taiga-ui-cdk-services.js +4 -1
  384. package/esm2015/taiga-ui-cdk.js +4 -1
  385. package/esm2015/tokens/active-element.js +26 -4
  386. package/esm2015/tokens/alerts.js +4 -1
  387. package/esm2015/tokens/default-renderer.js +10 -2
  388. package/esm2015/tokens/dialogs.js +5 -1
  389. package/esm2015/tokens/ensure-base-href.js +4 -1
  390. package/esm2015/tokens/focusable-item-accessor.js +4 -1
  391. package/esm2015/tokens/is-android.js +4 -1
  392. package/esm2015/tokens/is-apple.js +4 -1
  393. package/esm2015/tokens/is-chromium.js +4 -1
  394. package/esm2015/tokens/is-cypress.js +5 -1
  395. package/esm2015/tokens/is-e2e.js +4 -1
  396. package/esm2015/tokens/is-firefox.js +4 -1
  397. package/esm2015/tokens/is-ios.js +4 -1
  398. package/esm2015/tokens/is-mobile.js +5 -1
  399. package/esm2015/tokens/is-playwright.js +4 -1
  400. package/esm2015/tokens/is-webkit.js +4 -1
  401. package/esm2015/tokens/platform.js +2 -1
  402. package/esm2015/tokens/range.js +4 -1
  403. package/esm2015/tokens/removed-element.js +4 -1
  404. package/esm2015/tokens/scroll-ref.js +4 -1
  405. package/esm2015/tokens/swipe-options.js +4 -1
  406. package/esm2015/tokens/taiga-ui-cdk-tokens.js +4 -1
  407. package/esm2015/tokens/take-only-trusted-events.js +7 -1
  408. package/esm2015/tokens/window-height.js +4 -1
  409. package/esm2015/tokens/zoom-options.js +4 -1
  410. package/esm2015/types/taiga-ui-cdk-types.js +4 -1
  411. package/esm2015/utils/browser/taiga-ui-cdk-utils-browser.js +4 -1
  412. package/esm2015/utils/color/hex-to-rgba.js +2 -1
  413. package/esm2015/utils/color/hsv-to-rgb.js +4 -1
  414. package/esm2015/utils/color/rgb-to-hsv.js +2 -1
  415. package/esm2015/utils/color/rgba-to-hex.js +2 -1
  416. package/esm2015/utils/color/taiga-ui-cdk-utils-color.js +4 -1
  417. package/esm2015/utils/dom/element-checks.js +2 -1
  418. package/esm2015/utils/dom/get-actual-target.js +4 -1
  419. package/esm2015/utils/dom/get-clipboard-data-text.js +4 -1
  420. package/esm2015/utils/dom/get-element-obscurers.js +10 -1
  421. package/esm2015/utils/dom/get-element-offset.js +8 -1
  422. package/esm2015/utils/dom/get-scroll-parent.js +7 -1
  423. package/esm2015/utils/dom/get-selected-text.js +9 -1
  424. package/esm2015/utils/dom/is-inside-iframe.js +4 -1
  425. package/esm2015/utils/dom/is-node-in.js +8 -1
  426. package/esm2015/utils/dom/retarget-boundary-crossing.js +9 -4
  427. package/esm2015/utils/dom/taiga-ui-cdk-utils-dom.js +4 -1
  428. package/esm2015/utils/focus/blur-native-focused.js +4 -1
  429. package/esm2015/utils/focus/get-closest-focusable.js +5 -1
  430. package/esm2015/utils/focus/get-native-focused.js +6 -1
  431. package/esm2015/utils/focus/is-native-focused-in.js +8 -1
  432. package/esm2015/utils/focus/is-native-focused.js +9 -1
  433. package/esm2015/utils/focus/is-native-keyboard-focusable.js +7 -1
  434. package/esm2015/utils/focus/move-focus.js +8 -1
  435. package/esm2015/utils/focus/set-native-mouse-focused.js +8 -1
  436. package/esm2015/utils/focus/taiga-ui-cdk-utils-focus.js +4 -1
  437. package/esm2015/utils/format/px.js +4 -1
  438. package/esm2015/utils/format/taiga-ui-cdk-utils-format.js +4 -1
  439. package/esm2015/utils/math/clamp.js +8 -1
  440. package/esm2015/utils/math/normalize-to-int-number.js +9 -1
  441. package/esm2015/utils/math/quantize.js +7 -1
  442. package/esm2015/utils/math/round.js +8 -1
  443. package/esm2015/utils/math/sum.js +4 -1
  444. package/esm2015/utils/math/taiga-ui-cdk-utils-math.js +4 -1
  445. package/esm2015/utils/math/to-radians.js +4 -1
  446. package/esm2015/utils/miscellaneous/create-options.js +2 -1
  447. package/esm2015/utils/miscellaneous/flat-length.js +6 -1
  448. package/esm2015/utils/miscellaneous/get-original-array-from-query-list.js +7 -1
  449. package/esm2015/utils/miscellaneous/is-number.js +2 -1
  450. package/esm2015/utils/miscellaneous/is-object.js +2 -1
  451. package/esm2015/utils/miscellaneous/is-string.js +2 -1
  452. package/esm2015/utils/miscellaneous/is-valid-url.js +8 -7
  453. package/esm2015/utils/miscellaneous/nullable-same.js +9 -1
  454. package/esm2015/utils/miscellaneous/object-from-entries.js +9 -1
  455. package/esm2015/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.js +4 -1
  456. package/esm2015/utils/os/is-apple-platform.js +11 -1
  457. package/esm2015/utils/os/taiga-ui-cdk-utils-os.js +4 -1
  458. package/esm2015/utils/svg/svg-linear-gradient-processor.js +16 -2
  459. package/esm2015/utils/svg/taiga-ui-cdk-utils-svg.js +4 -1
  460. package/esm2015/utils/taiga-ui-cdk-utils.js +4 -1
  461. package/exceptions/taiga-ui-cdk-exceptions.d.ts +3 -0
  462. package/fesm2015/taiga-ui-cdk-abstract.js +34 -0
  463. package/fesm2015/taiga-ui-cdk-abstract.js.map +1 -1
  464. package/fesm2015/taiga-ui-cdk-classes.js +9 -0
  465. package/fesm2015/taiga-ui-cdk-classes.js.map +1 -1
  466. package/fesm2015/taiga-ui-cdk-coercion.js +10 -0
  467. package/fesm2015/taiga-ui-cdk-coercion.js.map +1 -1
  468. package/fesm2015/taiga-ui-cdk-components-alert-host.js +8 -0
  469. package/fesm2015/taiga-ui-cdk-components-alert-host.js.map +1 -1
  470. package/fesm2015/taiga-ui-cdk-components-dialog-host.js +11 -0
  471. package/fesm2015/taiga-ui-cdk-components-dialog-host.js.map +1 -1
  472. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js +12 -0
  473. package/fesm2015/taiga-ui-cdk-components-dropdown-host.js.map +1 -1
  474. package/fesm2015/taiga-ui-cdk-components-scroll-controls.js +4 -0
  475. package/fesm2015/taiga-ui-cdk-components-scroll-controls.js.map +1 -1
  476. package/fesm2015/taiga-ui-cdk-components.js +4 -0
  477. package/fesm2015/taiga-ui-cdk-components.js.map +1 -1
  478. package/fesm2015/taiga-ui-cdk-constants.js +109 -1
  479. package/fesm2015/taiga-ui-cdk-constants.js.map +1 -1
  480. package/fesm2015/taiga-ui-cdk-date-time.js +284 -0
  481. package/fesm2015/taiga-ui-cdk-date-time.js.map +1 -1
  482. package/fesm2015/taiga-ui-cdk-decorators.js +26 -0
  483. package/fesm2015/taiga-ui-cdk-decorators.js.map +1 -1
  484. package/fesm2015/taiga-ui-cdk-directives-active-zone.js +4 -0
  485. package/fesm2015/taiga-ui-cdk-directives-active-zone.js.map +1 -1
  486. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js +44 -1
  487. package/fesm2015/taiga-ui-cdk-directives-auto-focus.js.map +1 -1
  488. package/fesm2015/taiga-ui-cdk-directives-autofilled.js +4 -0
  489. package/fesm2015/taiga-ui-cdk-directives-autofilled.js.map +1 -1
  490. package/fesm2015/taiga-ui-cdk-directives-checked.js +4 -0
  491. package/fesm2015/taiga-ui-cdk-directives-checked.js.map +1 -1
  492. package/fesm2015/taiga-ui-cdk-directives-click-outside.js +4 -0
  493. package/fesm2015/taiga-ui-cdk-directives-click-outside.js.map +1 -1
  494. package/fesm2015/taiga-ui-cdk-directives-control.js +4 -0
  495. package/fesm2015/taiga-ui-cdk-directives-control.js.map +1 -1
  496. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js +4 -0
  497. package/fesm2015/taiga-ui-cdk-directives-copy-processor.js.map +1 -1
  498. package/fesm2015/taiga-ui-cdk-directives-drag.js +10 -0
  499. package/fesm2015/taiga-ui-cdk-directives-drag.js.map +1 -1
  500. package/fesm2015/taiga-ui-cdk-directives-droppable.js +5 -0
  501. package/fesm2015/taiga-ui-cdk-directives-droppable.js.map +1 -1
  502. package/fesm2015/taiga-ui-cdk-directives-element.js +18 -0
  503. package/fesm2015/taiga-ui-cdk-directives-element.js.map +1 -1
  504. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js +17 -0
  505. package/fesm2015/taiga-ui-cdk-directives-focus-trap.js.map +1 -1
  506. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js +9 -0
  507. package/fesm2015/taiga-ui-cdk-directives-focus-visible.js.map +1 -1
  508. package/fesm2015/taiga-ui-cdk-directives-focusable.js +10 -0
  509. package/fesm2015/taiga-ui-cdk-directives-focusable.js.map +1 -1
  510. package/fesm2015/taiga-ui-cdk-directives-focused.js +9 -0
  511. package/fesm2015/taiga-ui-cdk-directives-focused.js.map +1 -1
  512. package/fesm2015/taiga-ui-cdk-directives-for-async.js +7 -0
  513. package/fesm2015/taiga-ui-cdk-directives-for-async.js.map +1 -1
  514. package/fesm2015/taiga-ui-cdk-directives-for.js +4 -0
  515. package/fesm2015/taiga-ui-cdk-directives-for.js.map +1 -1
  516. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js +7 -0
  517. package/fesm2015/taiga-ui-cdk-directives-high-dpi.js.map +1 -1
  518. package/fesm2015/taiga-ui-cdk-directives-hovered.js +7 -1
  519. package/fesm2015/taiga-ui-cdk-directives-hovered.js.map +1 -1
  520. package/fesm2015/taiga-ui-cdk-directives-item.js +7 -0
  521. package/fesm2015/taiga-ui-cdk-directives-item.js.map +1 -1
  522. package/fesm2015/taiga-ui-cdk-directives-let.js +17 -0
  523. package/fesm2015/taiga-ui-cdk-directives-let.js.map +1 -1
  524. package/fesm2015/taiga-ui-cdk-directives-media.js +7 -0
  525. package/fesm2015/taiga-ui-cdk-directives-media.js.map +1 -1
  526. package/fesm2015/taiga-ui-cdk-directives-obscured.js +7 -0
  527. package/fesm2015/taiga-ui-cdk-directives-obscured.js.map +1 -1
  528. package/fesm2015/taiga-ui-cdk-directives-overscroll.js +10 -0
  529. package/fesm2015/taiga-ui-cdk-directives-overscroll.js.map +1 -1
  530. package/fesm2015/taiga-ui-cdk-directives-pan.js +7 -0
  531. package/fesm2015/taiga-ui-cdk-directives-pan.js.map +1 -1
  532. package/fesm2015/taiga-ui-cdk-directives-platform.js +4 -0
  533. package/fesm2015/taiga-ui-cdk-directives-platform.js.map +1 -1
  534. package/fesm2015/taiga-ui-cdk-directives-portal.js +4 -0
  535. package/fesm2015/taiga-ui-cdk-directives-portal.js.map +1 -1
  536. package/fesm2015/taiga-ui-cdk-directives-pressed.js +4 -0
  537. package/fesm2015/taiga-ui-cdk-directives-pressed.js.map +1 -1
  538. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js +12 -0
  539. package/fesm2015/taiga-ui-cdk-directives-prevent-default.js.map +1 -1
  540. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js +11 -0
  541. package/fesm2015/taiga-ui-cdk-directives-repeat-times.js.map +1 -1
  542. package/fesm2015/taiga-ui-cdk-directives-resize.js +7 -0
  543. package/fesm2015/taiga-ui-cdk-directives-resize.js.map +1 -1
  544. package/fesm2015/taiga-ui-cdk-directives-resizer.js +5 -0
  545. package/fesm2015/taiga-ui-cdk-directives-resizer.js.map +1 -1
  546. package/fesm2015/taiga-ui-cdk-directives-swipe.js +7 -0
  547. package/fesm2015/taiga-ui-cdk-directives-swipe.js.map +1 -1
  548. package/fesm2015/taiga-ui-cdk-directives-validator.js +4 -0
  549. package/fesm2015/taiga-ui-cdk-directives-validator.js.map +1 -1
  550. package/fesm2015/taiga-ui-cdk-directives-value-changes.js +4 -0
  551. package/fesm2015/taiga-ui-cdk-directives-value-changes.js.map +1 -1
  552. package/fesm2015/taiga-ui-cdk-directives-zoom.js +7 -0
  553. package/fesm2015/taiga-ui-cdk-directives-zoom.js.map +1 -1
  554. package/fesm2015/taiga-ui-cdk-directives.js +4 -0
  555. package/fesm2015/taiga-ui-cdk-directives.js.map +1 -1
  556. package/fesm2015/taiga-ui-cdk-enums.js +8 -0
  557. package/fesm2015/taiga-ui-cdk-enums.js.map +1 -1
  558. package/fesm2015/taiga-ui-cdk-exceptions.js +4 -0
  559. package/fesm2015/taiga-ui-cdk-exceptions.js.map +1 -1
  560. package/fesm2015/taiga-ui-cdk-interfaces.js +3 -1
  561. package/fesm2015/taiga-ui-cdk-interfaces.js.map +1 -1
  562. package/fesm2015/taiga-ui-cdk-observables.js +34 -1
  563. package/fesm2015/taiga-ui-cdk-observables.js.map +1 -1
  564. package/fesm2015/taiga-ui-cdk-pipes-filter.js +4 -0
  565. package/fesm2015/taiga-ui-cdk-pipes-filter.js.map +1 -1
  566. package/fesm2015/taiga-ui-cdk-pipes-is-present.js +4 -0
  567. package/fesm2015/taiga-ui-cdk-pipes-is-present.js.map +1 -1
  568. package/fesm2015/taiga-ui-cdk-pipes-keys.js +4 -0
  569. package/fesm2015/taiga-ui-cdk-pipes-keys.js.map +1 -1
  570. package/fesm2015/taiga-ui-cdk-pipes-mapper.js +4 -0
  571. package/fesm2015/taiga-ui-cdk-pipes-mapper.js.map +1 -1
  572. package/fesm2015/taiga-ui-cdk-pipes-replace.js +7 -1
  573. package/fesm2015/taiga-ui-cdk-pipes-replace.js.map +1 -1
  574. package/fesm2015/taiga-ui-cdk-pipes.js +4 -0
  575. package/fesm2015/taiga-ui-cdk-pipes.js.map +1 -1
  576. package/fesm2015/taiga-ui-cdk-services.js +52 -5
  577. package/fesm2015/taiga-ui-cdk-services.js.map +1 -1
  578. package/fesm2015/taiga-ui-cdk-tokens.js +108 -4
  579. package/fesm2015/taiga-ui-cdk-tokens.js.map +1 -1
  580. package/fesm2015/taiga-ui-cdk-types.js +3 -1
  581. package/fesm2015/taiga-ui-cdk-types.js.map +1 -1
  582. package/fesm2015/taiga-ui-cdk-utils-browser.js +4 -0
  583. package/fesm2015/taiga-ui-cdk-utils-browser.js.map +1 -1
  584. package/fesm2015/taiga-ui-cdk-utils-color.js +10 -0
  585. package/fesm2015/taiga-ui-cdk-utils-color.js.map +1 -1
  586. package/fesm2015/taiga-ui-cdk-utils-dom.js +59 -3
  587. package/fesm2015/taiga-ui-cdk-utils-dom.js.map +1 -1
  588. package/fesm2015/taiga-ui-cdk-utils-focus.js +51 -0
  589. package/fesm2015/taiga-ui-cdk-utils-focus.js.map +1 -1
  590. package/fesm2015/taiga-ui-cdk-utils-format.js +7 -0
  591. package/fesm2015/taiga-ui-cdk-utils-format.js.map +1 -1
  592. package/fesm2015/taiga-ui-cdk-utils-math.js +38 -0
  593. package/fesm2015/taiga-ui-cdk-utils-math.js.map +1 -1
  594. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js +42 -6
  595. package/fesm2015/taiga-ui-cdk-utils-miscellaneous.js.map +1 -1
  596. package/fesm2015/taiga-ui-cdk-utils-os.js +14 -0
  597. package/fesm2015/taiga-ui-cdk-utils-os.js.map +1 -1
  598. package/fesm2015/taiga-ui-cdk-utils-svg.js +19 -1
  599. package/fesm2015/taiga-ui-cdk-utils-svg.js.map +1 -1
  600. package/fesm2015/taiga-ui-cdk-utils.js +4 -0
  601. package/fesm2015/taiga-ui-cdk-utils.js.map +1 -1
  602. package/fesm2015/taiga-ui-cdk.js +4 -0
  603. package/fesm2015/taiga-ui-cdk.js.map +1 -1
  604. package/interfaces/control-value-transformer.d.ts +3 -0
  605. package/interfaces/day-like.d.ts +3 -0
  606. package/interfaces/focusable-element-accessor.d.ts +4 -0
  607. package/interfaces/month-like.d.ts +3 -0
  608. package/interfaces/taiga-ui-cdk-interfaces.d.ts +3 -0
  609. package/interfaces/year-like.d.ts +3 -0
  610. package/observables/control-value.d.ts +3 -0
  611. package/observables/is-alive.d.ts +3 -0
  612. package/observables/items-query-list-observable.d.ts +6 -0
  613. package/observables/mouse-drag-finish-from.d.ts +4 -0
  614. package/observables/scroll-from.d.ts +3 -0
  615. package/observables/taiga-ui-cdk-observables.d.ts +3 -0
  616. package/package.json +7 -5
  617. package/pipes/filter/filter.pipe.d.ts +7 -0
  618. package/pipes/filter/taiga-ui-cdk-pipes-filter.d.ts +3 -0
  619. package/pipes/is-present/taiga-ui-cdk-pipes-is-present.d.ts +3 -0
  620. package/pipes/keys/taiga-ui-cdk-pipes-keys.d.ts +3 -0
  621. package/pipes/mapper/mapper.pipe.d.ts +7 -0
  622. package/pipes/mapper/taiga-ui-cdk-pipes-mapper.d.ts +3 -0
  623. package/pipes/replace/taiga-ui-cdk-pipes-replace.d.ts +3 -0
  624. package/pipes/taiga-ui-cdk-pipes.d.ts +3 -0
  625. package/schematics/constants/file-globs.js +3 -1
  626. package/schematics/index.d.ts +0 -1
  627. package/schematics/index.js +0 -1
  628. package/schematics/ng-add/index.js +1 -0
  629. package/schematics/ng-add/schema.d.ts +12 -0
  630. package/schematics/ng-update/interfaces/index.d.ts +12 -0
  631. package/schematics/ng-update/interfaces/index.js +15 -0
  632. package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.d.ts → interfaces/replacement-attribute-value.d.ts} +1 -1
  633. package/schematics/ng-update/interfaces/{replaceable-attribute.d.ts → replacement-attribute.d.ts} +1 -1
  634. package/schematics/ng-update/interfaces/{replacement-const.d.ts → replacement-identifier.d.ts} +1 -1
  635. package/schematics/ng-update/interfaces/replacement-service.d.ts +2 -2
  636. package/schematics/ng-update/interfaces/replacement-tag.d.ts +5 -0
  637. package/schematics/ng-update/interfaces/{type-to-rename.d.ts → replacement-type.d.ts} +1 -1
  638. package/schematics/ng-update/steps/icons/replace-imports.d.ts +2 -2
  639. package/schematics/ng-update/steps/rename-types.d.ts +2 -2
  640. package/schematics/ng-update/steps/rename-types.js +1 -1
  641. package/schematics/ng-update/steps/replace-enums.js +2 -2
  642. package/schematics/ng-update/steps/replace-identifier.d.ts +4 -0
  643. package/schematics/ng-update/steps/{replace-const.js → replace-identifier.js} +8 -8
  644. package/schematics/ng-update/steps/replace-services.js +1 -1
  645. package/schematics/ng-update/steps/show-warnings.js +5 -0
  646. package/schematics/ng-update/utils/templates/remove-inputs.d.ts +10 -0
  647. package/schematics/ng-update/utils/templates/remove-inputs.js +19 -0
  648. package/schematics/ng-update/utils/templates/replace-attr-values.d.ts +3 -3
  649. package/schematics/ng-update/utils/templates/replace-attr-values.js +2 -2
  650. package/schematics/ng-update/utils/templates/replace-attrs.d.ts +10 -0
  651. package/schematics/ng-update/utils/templates/replace-attrs.js +20 -0
  652. package/schematics/ng-update/utils/templates/replace-tags.d.ts +10 -0
  653. package/schematics/ng-update/utils/templates/replace-tags.js +19 -0
  654. package/schematics/ng-update/v3/constants/breakpoints.js +2 -0
  655. package/schematics/ng-update/v3/constants/constants.d.ts +2 -2
  656. package/schematics/ng-update/v3/constants/deprecated-functions.d.ts +2 -2
  657. package/schematics/ng-update/v3/constants/enums.js +4 -0
  658. package/schematics/ng-update/v3/constants/templates.d.ts +12 -7
  659. package/schematics/ng-update/v3/constants/templates.js +5 -0
  660. package/schematics/ng-update/v3/constants/types.d.ts +2 -2
  661. package/schematics/ng-update/v3/index.d.ts +0 -1
  662. package/schematics/ng-update/v3/index.js +7 -16
  663. package/schematics/ng-update/v3/steps/migrate-date-time.js +18 -0
  664. package/schematics/ng-update/v3/steps/migrate-polymorpheus.js +1 -1
  665. package/schematics/ng-update/v3/steps/migrate-progress.js +3 -1
  666. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.js +6 -0
  667. package/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.js +5 -0
  668. package/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.js +1 -0
  669. package/schematics/ng-update/v3/steps/migrate-templates.js +19 -40
  670. package/schematics/ng-update/v3/steps/miscellaneous.js +5 -1
  671. package/schematics/ng-update/v3/steps/replace-functions.js +1 -1
  672. package/schematics/ng-update/v3-30/constants/constants.d.ts +2 -2
  673. package/schematics/ng-update/v3-30/index.js +1 -0
  674. package/schematics/ng-update/v3-35/constants/constants.d.ts +2 -2
  675. package/schematics/ng-update/v3-35/index.js +1 -0
  676. package/schematics/ng-update/v3-36/index.js +1 -0
  677. package/schematics/ng-update/v3-40/index.js +2 -1
  678. package/schematics/ng-update/v3-5/index.js +1 -0
  679. package/schematics/ng-update/v4/index.js +19 -6
  680. package/schematics/ng-update/v4/steps/constants/attrs-to-replace.d.ts +2 -0
  681. package/schematics/ng-update/v4/steps/constants/attrs-to-replace.js +33 -0
  682. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.d.ts +2 -0
  683. package/schematics/ng-update/v4/steps/constants/identifiers-to-replace.js +32 -0
  684. package/schematics/ng-update/v4/steps/constants/inputs-to-remove.d.ts +2 -0
  685. package/schematics/ng-update/v4/steps/constants/inputs-to-remove.js +6 -0
  686. package/schematics/ng-update/v4/steps/constants/tags-to-replace.d.ts +2 -0
  687. package/schematics/ng-update/v4/steps/constants/tags-to-replace.js +7 -0
  688. package/schematics/ng-update/v4/steps/index.d.ts +3 -0
  689. package/schematics/ng-update/v4/steps/index.js +6 -0
  690. package/schematics/ng-update/v4/steps/migrate-templates.d.ts +3 -0
  691. package/schematics/ng-update/v4/steps/migrate-templates.js +44 -0
  692. package/schematics/ng-update/v4/steps/restore-tui-mapper.d.ts +1 -2
  693. package/schematics/ng-update/v4/steps/restore-tui-mapper.js +23 -67
  694. package/schematics/ng-update/v4/steps/restore-tui-matcher.d.ts +1 -2
  695. package/schematics/ng-update/v4/steps/restore-tui-matcher.js +23 -67
  696. package/schematics/ng-update/v4/steps/templates/migrate-badge.d.ts +8 -0
  697. package/schematics/ng-update/v4/steps/templates/migrate-badge.js +29 -0
  698. package/schematics/utils/add-import-to-component.js +3 -2
  699. package/schematics/utils/angular/ng-module.d.ts +3 -0
  700. package/schematics/utils/angular/ng-module.js +3 -0
  701. package/schematics/utils/angular-json-manipulations.js +7 -0
  702. package/schematics/utils/colored-log.js +1 -1
  703. package/schematics/utils/get-projects.d.ts +2 -2
  704. package/schematics/utils/get-projects.js +3 -1
  705. package/schematics/utils/is-ci.js +13 -11
  706. package/schematics/utils/progress.js +1 -0
  707. package/schematics/utils/push-to-array-property.js +1 -0
  708. package/schematics/utils/templates/elements.d.ts +19 -0
  709. package/schematics/utils/templates/elements.js +26 -2
  710. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +44 -0
  711. package/schematics/utils/templates/ng-component-input-manipulations.js +47 -1
  712. package/services/destroy.service.d.ts +8 -0
  713. package/services/directive-styles.service.d.ts +3 -0
  714. package/services/focus-visible.service.d.ts +5 -0
  715. package/services/id.service.d.ts +3 -0
  716. package/services/obscured.service.d.ts +5 -0
  717. package/services/parents-scroll.service.d.ts +3 -0
  718. package/services/taiga-ui-cdk-services.d.ts +3 -0
  719. package/taiga-ui-cdk.d.ts +3 -0
  720. package/tokens/active-element.d.ts +3 -0
  721. package/tokens/alerts.d.ts +3 -0
  722. package/tokens/default-renderer.d.ts +6 -0
  723. package/tokens/dialogs.d.ts +3 -0
  724. package/tokens/ensure-base-href.d.ts +3 -0
  725. package/tokens/focusable-item-accessor.d.ts +3 -0
  726. package/tokens/is-android.d.ts +3 -0
  727. package/tokens/is-apple.d.ts +3 -0
  728. package/tokens/is-chromium.d.ts +3 -0
  729. package/tokens/is-cypress.d.ts +4 -0
  730. package/tokens/is-e2e.d.ts +3 -0
  731. package/tokens/is-firefox.d.ts +3 -0
  732. package/tokens/is-ios.d.ts +3 -0
  733. package/tokens/is-mobile.d.ts +3 -0
  734. package/tokens/is-playwright.d.ts +3 -0
  735. package/tokens/is-webkit.d.ts +3 -0
  736. package/tokens/range.d.ts +3 -0
  737. package/tokens/removed-element.d.ts +3 -0
  738. package/tokens/scroll-ref.d.ts +3 -0
  739. package/tokens/swipe-options.d.ts +3 -0
  740. package/tokens/taiga-ui-cdk-tokens.d.ts +3 -0
  741. package/tokens/take-only-trusted-events.d.ts +6 -0
  742. package/tokens/window-height.d.ts +3 -0
  743. package/tokens/zoom-options.d.ts +3 -0
  744. package/types/autocomplete.d.ts +1 -0
  745. package/types/date-mode.d.ts +5 -0
  746. package/types/event-with.d.ts +3 -0
  747. package/types/mapper.d.ts +9 -0
  748. package/types/matcher.d.ts +8 -0
  749. package/types/taiga-ui-cdk-types.d.ts +3 -0
  750. package/utils/browser/taiga-ui-cdk-utils-browser.d.ts +3 -0
  751. package/utils/color/hsv-to-rgb.d.ts +3 -0
  752. package/utils/color/taiga-ui-cdk-utils-color.d.ts +3 -0
  753. package/utils/dom/get-actual-target.d.ts +3 -0
  754. package/utils/dom/get-clipboard-data-text.d.ts +3 -0
  755. package/utils/dom/get-element-obscurers.d.ts +9 -0
  756. package/utils/dom/get-element-offset.d.ts +7 -0
  757. package/utils/dom/get-scroll-parent.d.ts +6 -0
  758. package/utils/dom/get-selected-text.d.ts +8 -0
  759. package/utils/dom/is-inside-iframe.d.ts +3 -0
  760. package/utils/dom/is-node-in.d.ts +7 -0
  761. package/utils/dom/taiga-ui-cdk-utils-dom.d.ts +3 -0
  762. package/utils/focus/blur-native-focused.d.ts +3 -0
  763. package/utils/focus/get-closest-focusable.d.ts +20 -0
  764. package/utils/focus/get-native-focused.d.ts +5 -0
  765. package/utils/focus/is-native-focused-in.d.ts +6 -0
  766. package/utils/focus/is-native-focused.d.ts +8 -0
  767. package/utils/focus/is-native-keyboard-focusable.d.ts +6 -0
  768. package/utils/focus/move-focus.d.ts +7 -0
  769. package/utils/focus/set-native-mouse-focused.d.ts +7 -0
  770. package/utils/focus/taiga-ui-cdk-utils-focus.d.ts +3 -0
  771. package/utils/format/px.d.ts +3 -0
  772. package/utils/format/taiga-ui-cdk-utils-format.d.ts +3 -0
  773. package/utils/math/clamp.d.ts +7 -0
  774. package/utils/math/normalize-to-int-number.d.ts +8 -0
  775. package/utils/math/quantize.d.ts +6 -0
  776. package/utils/math/sum.d.ts +3 -0
  777. package/utils/math/taiga-ui-cdk-utils-math.d.ts +3 -0
  778. package/utils/math/to-radians.d.ts +3 -0
  779. package/utils/miscellaneous/create-options.d.ts +1 -0
  780. package/utils/miscellaneous/flat-length.d.ts +5 -0
  781. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +6 -0
  782. package/utils/miscellaneous/is-string.js +1 -0
  783. package/utils/miscellaneous/nullable-same.d.ts +8 -0
  784. package/utils/miscellaneous/object-from-entries.d.ts +8 -0
  785. package/utils/miscellaneous/taiga-ui-cdk-utils-miscellaneous.d.ts +3 -0
  786. package/utils/os/is-apple-platform.d.ts +10 -0
  787. package/utils/os/taiga-ui-cdk-utils-os.d.ts +3 -0
  788. package/utils/svg/svg-linear-gradient-processor.d.ts +14 -0
  789. package/utils/svg/taiga-ui-cdk-utils-svg.d.ts +3 -0
  790. package/utils/taiga-ui-cdk-utils.d.ts +3 -0
  791. package/schematics/ng-update/steps/replace-const.d.ts +0 -4
  792. package/schematics/ng-update/v3/interfaces/replaceable-tag.d.ts +0 -5
  793. package/schematics/ng-update/v4/steps/replace-thumbnail-card.d.ts +0 -3
  794. package/schematics/ng-update/v4/steps/replace-thumbnail-card.js +0 -58
  795. /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.d.ts +0 -0
  796. /package/schematics/ng-update/{v3/interfaces → interfaces}/removable-input.js +0 -0
  797. /package/schematics/ng-update/interfaces/{replaceable-attribute.js → replacement-attribute-value.js} +0 -0
  798. /package/schematics/ng-update/interfaces/{replacement-const.js → replacement-attribute.js} +0 -0
  799. /package/schematics/ng-update/interfaces/{type-to-rename.js → replacement-identifier.js} +0 -0
  800. /package/schematics/ng-update/{v3/interfaces/replaceable-attribute-value.js → interfaces/replacement-tag.js} +0 -0
  801. /package/schematics/ng-update/{v3/interfaces/replaceable-tag.js → interfaces/replacement-type.js} +0 -0
  802. /package/schematics/{utils → ng-update/utils/templates}/replace-tag.d.ts +0 -0
  803. /package/schematics/{utils → ng-update/utils/templates}/replace-tag.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-miscellaneous.js","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-string.ts","../../../projects/cdk/utils/miscellaneous/clean-object.ts","../../../projects/cdk/utils/miscellaneous/create-token.ts","../../../projects/cdk/utils/miscellaneous/create-options.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/flat-length.ts","../../../projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts","../../../projects/cdk/utils/miscellaneous/get-swipe-direction.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/object-from-entries.ts","../../../projects/cdk/utils/miscellaneous/provide-options.ts","../../../projects/cdk/utils/miscellaneous/uniq-by.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 {tuiArrayRemove} from './array-remove';\n\nexport function tuiArrayToggle<T>(array: readonly T[], item: T): T[] {\n const index = array.indexOf(item);\n\n return index === -1 ? [...array, item] : tuiArrayRemove(array, index);\n}\n","export function tuiIsString(value: unknown): value is string {\n // eslint-disable-next-line @taiga-ui/experience/no-typeof\n return typeof value === `string`;\n}\n","import {TuiDeepPartial} from '@taiga-ui/cdk/types';\n\nimport {tuiIsString} from './is-string';\n\nexport function tuiCleanObject<T>(object: T): TuiDeepPartial<T> {\n return JSON.parse(\n JSON.stringify(object, (_key: string, value: unknown) =>\n checkValueIsEmpty(value) ? undefined : value,\n ),\n );\n}\n\ntype EmptyValue = '' | null | undefined;\n\nfunction checkValueIsEmpty<T>(value: EmptyValue | T): value is EmptyValue {\n const nextValue: any = tuiIsString(value) ? value.trim() : value;\n\n return [undefined, null, NaN, ``].includes(nextValue);\n}\n","import {InjectionToken} from '@angular/core';\n\nexport function tuiCreateToken<T>(defaults: T): InjectionToken<T> {\n return tuiCreateTokenFromFactory(() => defaults);\n}\n\nexport function tuiCreateTokenFromFactory<T>(factory: () => T): InjectionToken<T> {\n return new InjectionToken<T>(``, {factory});\n}\n","import {InjectionToken} from '@angular/core';\n\nimport {tuiCreateTokenFromFactory} from './create-token';\n\n/** @deprecated use {@link tuiCreateToken} instead */\nexport function tuiCreateOptions<T>(defaults: T): InjectionToken<T> {\n return tuiCreateTokenFromFactory(() => defaults);\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 - touches[1].clientX,\n touches[0].clientY - touches[1].clientY,\n );\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nexport function tuiEaseInOutQuad(t: number): number {\n ngDevMode &&\n tuiAssert.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","import {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","import {TuiSwipeDirection} from '@taiga-ui/cdk/interfaces';\n\nexport function tuiGetSwipeDirection(deltaX: number, deltaY: number): TuiSwipeDirection {\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n return deltaY > 0 ? `top` : `bottom`;\n }\n\n return deltaX > 0 ? `left` : `right`;\n}\n","export function tuiIsFalsy(value: unknown): boolean {\n return !value;\n}\n","export function tuiIsNumber(value: unknown): value is number {\n // eslint-disable-next-line @taiga-ui/experience/no-typeof\n return typeof value === `number`;\n}\n","export function tuiIsObject<T extends Record<string, any>>(\n value: unknown,\n): value is NonNullable<T> {\n // eslint-disable-next-line @taiga-ui/experience/no-typeof\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","export function tuiIsValidUrl(url: string): boolean {\n const pattern = new RegExp(\n `^([a-zA-Z]+:\\\\/\\\\/)?` + // protocol\n `((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|localhost|` + // domain name\n `((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))` + // OR IP (v4) address\n `(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*` + // port and path\n `(\\\\?[;&a-z\\\\d%_.~+=-]*)?` + // query string\n `(\\\\#[-a-z\\\\d_]*)?$`, // fragment locator\n `i`,\n );\n\n return pattern.test(url);\n}\n","import {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 {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 * @deprecated use `Object.fromEntries` instead\n * (check browser support first https://caniuse.com/mdn-javascript_builtins_object_fromentries)\n * ___\n * TODO: after we bump Firefox to 63+ replace this function with `Object.fromEntries`.\n * TODO: Add `es2019.object` to `tsconfig.json` => `compilerOptions.lib`.\n *\n */\nexport function tuiObjectFromEntries<K extends number | string, V>(\n keyValuePairs: Array<[K, V]>,\n): Record<K, V> {\n return keyValuePairs.reduce(\n (obj, [key, val]) => ({...obj, [key]: val}),\n {} as Record<K, V>,\n );\n}\n","import {FactoryProvider, InjectionToken, Optional, SkipSelf} from '@angular/core';\n\nexport function tuiProvideOptions<T>(\n provide: InjectionToken<T>,\n options: Partial<T>,\n fallback: T,\n): FactoryProvider {\n return {\n provide,\n deps: [[new Optional(), new SkipSelf(), provide]],\n useFactory: (parent: T | null): T => ({\n ...(parent || fallback),\n ...options,\n }),\n };\n}\n","import {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"],"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;;ACAgB,SAAA,cAAc,CAAI,KAAmB,EAAE,IAAO,EAAA;IAC1D,MAAM,KAAK,GAAG,KAAK,CAAC,O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AA,CAAA,MAAA,CAAA,EAAA,GAC7B,MAAM,IAAI,QAAQ,EAAC,EACpB,OAAO,CACZ,CAAA;KACL,CAAC;AACN;;ACbgB,SAAA,SAAS,CACrB,KAAmB,EACnB,GAAY,EAAA;AAEZ,IAAA,OAAO,KAAK,CAAC,IAAI,CACb,KAAK;AACA,SAAA,MAAM,CACH,CAAC,GAAG,EAAE,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;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils-miscellaneous.js","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-string.ts","../../../projects/cdk/utils/miscellaneous/clean-object.ts","../../../projects/cdk/utils/miscellaneous/create-token.ts","../../../projects/cdk/utils/miscellaneous/create-options.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/flat-length.ts","../../../projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts","../../../projects/cdk/utils/miscellaneous/get-swipe-direction.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/object-from-entries.ts","../../../projects/cdk/utils/miscellaneous/provide-options.ts","../../../projects/cdk/utils/miscellaneous/uniq-by.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 {tuiArrayRemove} from './array-remove';\n\nexport function tuiArrayToggle<T>(array: readonly T[], item: T): T[] {\n const index = array.indexOf(item);\n\n return index === -1 ? [...array, item] : tuiArrayRemove(array, index);\n}\n","export function tuiIsString(value: unknown): value is string {\n // eslint-disable-next-line @taiga-ui/experience/no-typeof\n return typeof value === `string`;\n}\n","import {TuiDeepPartial} from '@taiga-ui/cdk/types';\n\nimport {tuiIsString} from './is-string';\n\nexport function tuiCleanObject<T>(object: T): TuiDeepPartial<T> {\n return JSON.parse(\n JSON.stringify(object, (_key: string, value: unknown) =>\n checkValueIsEmpty(value) ? undefined : value,\n ),\n );\n}\n\ntype EmptyValue = '' | null | undefined;\n\nfunction checkValueIsEmpty<T>(value: EmptyValue | T): value is EmptyValue {\n const nextValue: any = tuiIsString(value) ? value.trim() : value;\n\n return [undefined, null, NaN, ``].includes(nextValue);\n}\n","import {InjectionToken} from '@angular/core';\n\nexport function tuiCreateToken<T>(defaults: T): InjectionToken<T> {\n return tuiCreateTokenFromFactory(() => defaults);\n}\n\nexport function tuiCreateTokenFromFactory<T>(factory: () => T): InjectionToken<T> {\n return new InjectionToken<T>(``, {factory});\n}\n","import {InjectionToken} from '@angular/core';\n\nimport {tuiCreateTokenFromFactory} from './create-token';\n\n/** @deprecated use {@link tuiCreateToken} instead */\nexport function tuiCreateOptions<T>(defaults: T): InjectionToken<T> {\n return tuiCreateTokenFromFactory(() => defaults);\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 - touches[1].clientX,\n touches[0].clientY - touches[1].clientY,\n );\n}\n","import {tuiAssert} from '@taiga-ui/cdk/classes';\n\nexport function tuiEaseInOutQuad(t: number): number {\n ngDevMode &&\n tuiAssert.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","import {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","import {TuiSwipeDirection} from '@taiga-ui/cdk/interfaces';\n\nexport function tuiGetSwipeDirection(deltaX: number, deltaY: number): TuiSwipeDirection {\n if (Math.abs(deltaY) > Math.abs(deltaX)) {\n return deltaY > 0 ? `top` : `bottom`;\n }\n\n return deltaX > 0 ? `left` : `right`;\n}\n","export function tuiIsFalsy(value: unknown): boolean {\n return !value;\n}\n","export function tuiIsNumber(value: unknown): value is number {\n // eslint-disable-next-line @taiga-ui/experience/no-typeof\n return typeof value === `number`;\n}\n","export function tuiIsObject<T extends Record<string, any>>(\n value: unknown,\n): value is NonNullable<T> {\n // eslint-disable-next-line @taiga-ui/experience/no-typeof\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","export function tuiIsValidUrl(url: string): boolean {\n const pattern = new RegExp(\n `^([a-zA-Z]+:\\\\/\\\\/)?` + // protocol\n `((([a-z\\\\d]([a-z\\\\d-]*[a-z\\\\d])*)\\\\.)+[a-z]{2,}|localhost|` + // domain name\n `((\\\\d{1,3}\\\\.){3}\\\\d{1,3}))` + // OR IP (v4) address\n `(\\\\:\\\\d+)?(\\\\/[-a-z\\\\d%_.~+]*)*` + // port and path\n `(\\\\?[;&a-z\\\\d%_.~+=-]*)?` + // query string\n `(\\\\#[-a-z\\\\d_]*)?$`, // fragment locator\n `i`,\n );\n\n return pattern.test(url);\n}\n","import {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 {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 * @deprecated use `Object.fromEntries` instead\n * (check browser support first https://caniuse.com/mdn-javascript_builtins_object_fromentries)\n * ___\n * TODO: after we bump Firefox to 63+ replace this function with `Object.fromEntries`.\n * TODO: Add `es2019.object` to `tsconfig.json` => `compilerOptions.lib`.\n *\n */\nexport function tuiObjectFromEntries<K extends number | string, V>(\n keyValuePairs: Array<[K, V]>,\n): Record<K, V> {\n return keyValuePairs.reduce(\n (obj, [key, val]) => ({...obj, [key]: val}),\n {} as Record<K, V>,\n );\n}\n","import {FactoryProvider, InjectionToken, Optional, SkipSelf} from '@angular/core';\n\nexport function tuiProvideOptions<T>(\n provide: InjectionToken<T>,\n options: Partial<T>,\n fallback: T,\n): FactoryProvider {\n return {\n provide,\n deps: [[new Optional(), new SkipSelf(), provide]],\n useFactory: (parent: T | null): T => ({\n ...(parent || fallback),\n ...options,\n }),\n };\n}\n","import {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","/**\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;;ACAgB,SAAA,cAAc,CAAI,KAAmB,EAAE,IAAO,EAAA;IAC1D,MAAM,KAAK,GAAG,KAAK,CAA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IAAI,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;AACjD,QAAA,UAAU,EAAE,CAAC,MAAgB,MAAQ,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,GAC7B,MAAM,IAAI,QAAQ,EAAC,EACpB,OAAO,CACZ,CAAA;KACL,CAAC;AACN;;ACbgB,SAAA,SAAS,CACrB,KAAmB,EACnB,GAAY,EAAA;AAEZ,IAAA,OAAO,KAAK,CAAC,IAAI,CACb,KAAK;AACA,SAAA,MAAM,CACH,CAAC,GAAG,EAAE,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;;ACdA;;AAEG;;;;"}
@@ -1,3 +1,13 @@
1
+ /**
2
+ * @description:
3
+ * All Chrome / Chromium-based browsers will return MacIntel on macOS,
4
+ * no matter what the hardware architecture is. See the source code here:
5
+ * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6
6
+ * But maybe in future years, it will be changed to MacM1
7
+ *
8
+ * Documentation:
9
+ * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
10
+ */
1
11
  function tuiIsApplePlatform(navigator) {
2
12
  return navigator.platform.startsWith(`Mac`) || navigator.platform === `iPhone`;
3
13
  }
@@ -13,5 +23,9 @@ function tuiIsApple(navigator) {
13
23
  return tuiIsIos(navigator) || SAFARI_REG_EXP.test(navigator.userAgent.toLowerCase());
14
24
  }
15
25
 
26
+ /**
27
+ * Generated bundle index. Do not edit.
28
+ */
29
+
16
30
  export { tuiIsApple, tuiIsApplePlatform, tuiIsIos };
17
31
  //# sourceMappingURL=taiga-ui-cdk-utils-os.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-os.js","sources":["../../../projects/cdk/utils/os/is-apple-platform.ts","../../../projects/cdk/utils/os/is-ios.ts","../../../projects/cdk/utils/os/is-apple.ts"],"sourcesContent":["/**\n * @description:\n * All Chrome / Chromium-based browsers will return MacIntel on macOS,\n * no matter what the hardware architecture is. See the source code here:\n * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6\n * But maybe in future years, it will be changed to MacM1\n *\n * Documentation:\n * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform\n */\nexport function tuiIsApplePlatform(navigator: Navigator): boolean {\n return navigator.platform.startsWith(`Mac`) || navigator.platform === `iPhone`;\n}\n","import {tuiIsApplePlatform} from './is-apple-platform';\n\nconst IOS_REG_EXP = /ipad|iphone|ipod/;\n\nexport function tuiIsIos(navigator: Navigator): boolean {\n return (\n IOS_REG_EXP.test(navigator.userAgent.toLowerCase()) ||\n (tuiIsApplePlatform(navigator) && navigator.maxTouchPoints > 1)\n );\n}\n","import {tuiIsIos} from './is-ios';\n\nconst SAFARI_REG_EXP = /^((?!chrome|android).)*safari/i;\n\nexport function tuiIsApple(navigator: Navigator): boolean {\n return tuiIsIos(navigator) || SAFARI_REG_EXP.test(navigator.userAgent.toLowerCase());\n}\n"],"names":[],"mappings":"AAUM,SAAU,kBAAkB,CAAC,SAAoB,EAAA;AACnD,IAAA,OAAO,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA,GAAA,CAAK,CAAC,IAAI,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACnF;;ACVA,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAEjC,SAAU,QAAQ,CAAC,SAAoB,EAAA;IACzC,QACI,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AACnD,SAAC,kBAAkB,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAC,EACjE;AACN;;ACPA,MAAM,cAAc,GAAG,gCAAgC,CAAC;AAElD,SAAU,UAAU,CAAC,SAAoB,EAAA;AAC3C,IAAA,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;AACzF;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils-os.js","sources":["../../../projects/cdk/utils/os/is-apple-platform.ts","../../../projects/cdk/utils/os/is-ios.ts","../../../projects/cdk/utils/os/is-apple.ts","../../../projects/cdk/utils/os/taiga-ui-cdk-utils-os.ts"],"sourcesContent":["/**\n * @description:\n * All Chrome / Chromium-based browsers will return MacIntel on macOS,\n * no matter what the hardware architecture is. See the source code here:\n * https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/frame/navigator_id.cc;l=64;drc=703d3c472cf27470dad21a3f2c8972aca3732cd6\n * But maybe in future years, it will be changed to MacM1\n *\n * Documentation:\n * https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform\n */\nexport function tuiIsApplePlatform(navigator: Navigator): boolean {\n return navigator.platform.startsWith(`Mac`) || navigator.platform === `iPhone`;\n}\n","import {tuiIsApplePlatform} from './is-apple-platform';\n\nconst IOS_REG_EXP = /ipad|iphone|ipod/;\n\nexport function tuiIsIos(navigator: Navigator): boolean {\n return (\n IOS_REG_EXP.test(navigator.userAgent.toLowerCase()) ||\n (tuiIsApplePlatform(navigator) && navigator.maxTouchPoints > 1)\n );\n}\n","import {tuiIsIos} from './is-ios';\n\nconst SAFARI_REG_EXP = /^((?!chrome|android).)*safari/i;\n\nexport function tuiIsApple(navigator: Navigator): boolean {\n return tuiIsIos(navigator) || SAFARI_REG_EXP.test(navigator.userAgent.toLowerCase());\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;;;;;;;AASG;AACG,SAAU,kBAAkB,CAAC,SAAoB,EAAA;AACnD,IAAA,OAAO,SAAS,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAA,GAAA,CAAK,CAAC,IAAI,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAC;AACnF;;ACVA,MAAM,WAAW,GAAG,kBAAkB,CAAC;AAEjC,SAAU,QAAQ,CAAC,SAAoB,EAAA;IACzC,QACI,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AACnD,SAAC,kBAAkB,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAC,EACjE;AACN;;ACPA,MAAM,cAAc,GAAG,gCAAgC,CAAC;AAElD,SAAU,UAAU,CAAC,SAAoB,EAAA;AAC3C,IAAA,OAAO,QAAQ,CAAC,SAAS,CAAC,IAAI,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC;AACzF;;ACNA;;AAEG;;;;"}
@@ -1,5 +1,19 @@
1
1
  import { tuiIsString } from '@taiga-ui/cdk/utils/miscellaneous';
2
2
 
3
+ /**
4
+ * @description:
5
+ * Any ‘linearGradient’ attributes which are defined on the referenced
6
+ * element which are not defined on this element are inherited by this element.
7
+ * If this element has no defined gradient stops, and the referenced element does
8
+ * (possibly due to its own ‘xlink:href’ attribute), then this element inherits
9
+ * the gradient stop from the referenced element. Inheritance can be indirect
10
+ * to an arbitrary level; thus, if the referenced element inherits attribute
11
+ * or gradient stops due to its own ‘xlink:href’ attribute, then the current
12
+ * element can inherit those attributes or gradient stops.
13
+ *
14
+ * Documentation: https://www.w3.org/TR/SVG11/pservers.html
15
+ *
16
+ */
3
17
  function tuiSvgLinearGradientProcessor(svg, salt = makeRandomSalt(), fallback = `rgba(0, 0, 0, 0.7)`) {
4
18
  if (tuiIsString(svg)) {
5
19
  const uniqueIds = extractLinearGradientIdsFromSvg(svg);
@@ -32,7 +46,7 @@ function setFallbackForGradientFill(svg, fallback) {
32
46
  try {
33
47
  const tree = new DOMParser().parseFromString(svg, `text/html`);
34
48
  tree.body
35
- .querySelectorAll(`[fill^=url]`)
49
+ .querySelectorAll(`[fill^=url]`) // only gradient
36
50
  .forEach(element => element.setAttribute(`fill`, `${element.getAttribute(`fill`)} ${fallback}`.trim()));
37
51
  return tree.body.innerHTML.trim();
38
52
  }
@@ -41,5 +55,9 @@ function setFallbackForGradientFill(svg, fallback) {
41
55
  }
42
56
  }
43
57
 
58
+ /**
59
+ * Generated bundle index. Do not edit.
60
+ */
61
+
44
62
  export { tuiSvgLinearGradientProcessor };
45
63
  //# sourceMappingURL=taiga-ui-cdk-utils-svg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils-svg.js","sources":["../../../projects/cdk/utils/svg/svg-linear-gradient-processor.ts"],"sourcesContent":["import {TuiSafeHtml} from '@taiga-ui/cdk/interfaces';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @description:\n * Any ‘linearGradient’ attributes which are defined on the referenced\n * element which are not defined on this element are inherited by this element.\n * If this element has no defined gradient stops, and the referenced element does\n * (possibly due to its own ‘xlink:href’ attribute), then this element inherits\n * the gradient stop from the referenced element. Inheritance can be indirect\n * to an arbitrary level; thus, if the referenced element inherits attribute\n * or gradient stops due to its own ‘xlink:href’ attribute, then the current\n * element can inherit those attributes or gradient stops.\n *\n * Documentation: https://www.w3.org/TR/SVG11/pservers.html\n *\n */\nexport function tuiSvgLinearGradientProcessor(\n svg: TuiSafeHtml,\n salt: number | string = makeRandomSalt(),\n fallback: string = `rgba(0, 0, 0, 0.7)`,\n): TuiSafeHtml {\n if (tuiIsString(svg)) {\n const uniqueIds = extractLinearGradientIdsFromSvg(svg);\n const rawSvg = uniqueIds.reduce((newSvg, previousId) => {\n const escapedId = escapeRegExp(previousId);\n const newId = `id_${salt}_${previousId}`;\n\n return newSvg\n .replace(new RegExp(`\"${escapedId}\"`, `g`), `\"${newId}\"`)\n .replace(new RegExp(`'${escapedId}'`, `g`), `'${newId}'`)\n .replace(new RegExp(`url\\\\('#${escapedId}'\\\\)`, `g`), `url('#${newId}')`)\n .replace(new RegExp(`url\\\\(\"#${escapedId}\"\\\\)`, `g`), `url(\"#${newId}\")`)\n .replace(new RegExp(`url\\\\(#${escapedId}\\\\)`, `g`), `url(#${newId})`);\n }, svg);\n\n return setFallbackForGradientFill(rawSvg, fallback);\n }\n\n return svg;\n}\n\nfunction makeRandomSalt(): number {\n return Math.floor(Math.random() * Date.now());\n}\n\nfunction escapeRegExp(search: string): string {\n return search.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, `\\\\$&`);\n}\n\nfunction extractLinearGradientIdsFromSvg(svg: string): string[] {\n const ids = (svg.match(/url\\((\"?)('*)#(.*?)('*)\\)/g) ?? []).map(url =>\n url.slice(4, url.length - 1).replace(/['\"#]+/g, ``),\n );\n\n return Array.from(new Set(ids));\n}\n\nfunction setFallbackForGradientFill(svg: string, fallback: string): string {\n try {\n const tree = new DOMParser().parseFromString(svg, `text/html`);\n\n tree.body\n .querySelectorAll(`[fill^=url]`) // only gradient\n .forEach(element =>\n element.setAttribute(\n `fill`,\n `${element.getAttribute(`fill`)} ${fallback}`.trim(),\n ),\n );\n\n return tree.body.innerHTML.trim();\n } catch {\n return svg;\n }\n}\n"],"names":[],"mappings":";;AAiBM,SAAU,6BAA6B,CACzC,GAAgB,EAChB,OAAwB,cAAc,EAAE,EACxC,QAAA,GAAmB,CAAoB,kBAAA,CAAA,EAAA;AAEvC,IAAA,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;AAClB,QAAA,MAAM,SAAS,GAAG,+BAA+B,CAAC,GAAG,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,KAAI;AACnD,YAAA,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,CAAC,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A0B,EAAE,CAAA,IAAA,CAAM,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,+BAA+B,CAAC,GAAW,EAAA;;AAChD,IAAA,MAAM,GAAG,GAAG,CAAC,MAAA,GAAG,CAAC,KAAK,CAAC,4BAA4B,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAI,EAAE,EAAE,GAAG,CAAC,GAAG,IAC/D,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,CAAE,CAAA,CAAC,CACtD,CAAC;IAEF,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,0BAA0B,CAAC,GAAW,EAAE,QAAgB,EAAA;IAC7D,IAAI;AACA,QAAA,MAAM,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,CAAW,SAAA,CAAA,CAAC,CAAC;AAE/D,QAAA,IAAI,CAAC,IAAI;aACJ,gBAAgB,CAAC,aAAa,CAAC;aAC/B,OAAO,CAAC,OAAO,IACZ,OAAO,CAAC,YAAY,CAChB,CAAM,IAAA,CAAA,EACN,CAAG,EAAA,OAAO,CAAC,YAAY,CAAC,CAAM,IAAA,CAAA,CAAC,CAAI,CAAA,EAAA,QAAQ,CAAE,CAAA,CAAC,IAAI,EAAE,CACvD,CACJ,CAAC;QAEN,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;AACrC,KAAA;IAAC,OAAM,EAAA,EAAA;AACJ,QAAA,OAAO,GAAG,CAAC;AACd,KAAA;AACL;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils-svg.js","sources":["../../../projects/cdk/utils/svg/svg-linear-gradient-processor.ts","../../../projects/cdk/utils/svg/taiga-ui-cdk-utils-svg.ts"],"sourcesContent":["import {TuiSafeHtml} from '@taiga-ui/cdk/interfaces';\nimport {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous';\n\n/**\n * @description:\n * Any ‘linearGradient’ attributes which are defined on the referenced\n * element which are not defined on this element are inherited by this element.\n * If this element has no defined gradient stops, and the referenced element does\n * (possibly due to its own ‘xlink:href’ attribute), then this element inherits\n * the gradient stop from the referenced element. Inheritance can be indirect\n * to an arbitrary level; thus, if the referenced element inherits attribute\n * or gradient stops due to its own ‘xlink:href’ attribute, then the current\n * element can inherit those attributes or gradient stops.\n *\n * Documentation: https://www.w3.org/TR/SVG11/pservers.html\n *\n */\nexport function tuiSvgLinearGradientProcessor(\n svg: TuiSafeHtml,\n salt: number | string = makeRandomSalt(),\n fallback: string = `rgba(0, 0, 0, 0.7)`,\n): TuiSafeHtml {\n if (tuiIsString(svg)) {\n const uniqueIds = extractLinearGradientIdsFromSvg(svg);\n const rawSvg = uniqueIds.reduce((newSvg, previousId) => {\n const escapedId = escapeRegExp(previousId);\n const newId = `id_${salt}_${previousId}`;\n\n return newSvg\n .replace(new RegExp(`\"${escapedId}\"`, `g`), `\"${newId}\"`)\n .replace(new RegExp(`'${escapedId}'`, `g`), `'${newId}'`)\n .replace(new RegExp(`url\\\\('#${escapedId}'\\\\)`, `g`), `url('#${newId}')`)\n .replace(new RegExp(`url\\\\(\"#${escapedId}\"\\\\)`, `g`), `url(\"#${newId}\")`)\n .replace(new RegExp(`url\\\\(#${escapedId}\\\\)`, `g`), `url(#${newId})`);\n }, svg);\n\n return setFallbackForGradientFill(rawSvg, fallback);\n }\n\n return svg;\n}\n\nfunction makeRandomSalt(): number {\n return Math.floor(Math.random() * Date.now());\n}\n\nfunction escapeRegExp(search: string): string {\n return search.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, `\\\\$&`);\n}\n\nfunction extractLinearGradientIdsFromSvg(svg: string): string[] {\n const ids = (svg.match(/url\\((\"?)('*)#(.*?)('*)\\)/g) ?? []).map(url =>\n url.slice(4, url.length - 1).replace(/['\"#]+/g, ``),\n );\n\n return Array.from(new Set(ids));\n}\n\nfunction setFallbackForGradientFill(svg: string, fallback: string): string {\n try {\n const tree = new DOMParser().parseFromString(svg, `text/html`);\n\n tree.body\n .querySelectorAll(`[fill^=url]`) // only gradient\n .forEach(element =>\n element.setAttribute(\n `fill`,\n `${element.getAttribute(`fill`)} ${fallback}`.trim(),\n ),\n );\n\n return tree.body.innerHTML.trim();\n } catch {\n return svg;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGA;;;;;;;;;;;;;AAaG;AACG,SAAU,6BAA6B,CACzC,GAAgB,EAChB,OAAwB,cAAc,EAAE,EACxC,QAAA,GAAmB,CAAoB,kBAAA,CAAA,EAAA;AAEvC,IAAA,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;AAClB,QAAA,MAAM,SAAS,GAAG,+BAA+B,CAAC,GAAG,CAAC,CAAC;QACvD,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,UAAU,KAAI;AACnD,YAAA,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;AAC3C,YAAA,MAAM,KAAK,GAAG,CAAA,GAAA,EAAM,IAAI,CAAI,CAAA,EAAA,UAAU,EAAE,CAAC;AAEzC,YAAA,OAAO,MAAM;AACR,iBAAA,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,SAAS,CAAA,CAAA,CAAG,EAAE,CAAA,CAAA,CAAG,CAAC,EAAE,CAAI,CAAA,EAAA,KAAK,GAAG,CAAC;AACxD,iBAAA,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,SAAS,CAAA,CAAA,CAAG,EAAE,CAAA,CAAA,CAAG,CAAC,EAAE,CAAI,CAAA,EAAA,KAAK,GAAG,CAAC;AACxD,iBAAA,OAAO,CAAC,IAAI,MAAM,CAAC,WAAW,SAAS,CAAA,IAAA,CAAM,EAAE,CAAA,C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AAS,0BAA0B,CAAC,GAAW,EAAE,QAAgB,EAAA;IAC7D,IAAI;AACA,QAAA,MAAM,IAAI,GAAG,IAAI,SAAS,EAAE,CAAC,eAAe,CAAC,GAAG,EAAE,CAAW,SAAA,CAAA,CAAC,CAAC;AAE/D,QAAA,IAAI,CAAC,IAAI;AACJ,aAAA,gBAAgB,CAAC,CAAA,WAAA,CAAa,CAAC;aAC/B,OAAO,CAAC,OAAO,IACZ,OAAO,CAAC,YAAY,CAChB,CAAM,IAAA,CAAA,EACN,CAAG,EAAA,OAAO,CAAC,YAAY,CAAC,CAAM,IAAA,CAAA,CAAC,CAAI,CAAA,EAAA,QAAQ,CAAE,CAAA,CAAC,IAAI,EAAE,CACvD,CACJ,CAAC;QAEN,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;AACrC,KAAA;IAAC,OAAM,EAAA,EAAA;AACJ,QAAA,OAAO,GAAG,CAAC;AACd,KAAA;AACL;;AC3EA;;AAEG;;;;"}
@@ -7,4 +7,8 @@ export * from '@taiga-ui/cdk/utils/math';
7
7
  export * from '@taiga-ui/cdk/utils/miscellaneous';
8
8
  export * from '@taiga-ui/cdk/utils/os';
9
9
  export * from '@taiga-ui/cdk/utils/svg';
10
+
11
+ /**
12
+ * Generated bundle index. Do not edit.
13
+ */
10
14
  //# sourceMappingURL=taiga-ui-cdk-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk-utils.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk-utils.js","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"}
@@ -15,4 +15,8 @@ export * from '@taiga-ui/cdk/services';
15
15
  export * from '@taiga-ui/cdk/tokens';
16
16
  export * from '@taiga-ui/cdk/types';
17
17
  export * from '@taiga-ui/cdk/utils';
18
+
19
+ /**
20
+ * Generated bundle index. Do not edit.
21
+ */
18
22
  //# sourceMappingURL=taiga-ui-cdk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-cdk.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taiga-ui-cdk.js","sources":["../../../projects/cdk/taiga-ui-cdk.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;AAEG"}
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Use {@link AbstractTuiValueTransformer} instead
3
+ */
1
4
  export interface TuiControlValueTransformer<From, To = unknown> {
2
5
  readonly fromControlValue: (controlValue: To) => From;
3
6
  readonly toControlValue: (componentValue: From) => To;
@@ -1,4 +1,7 @@
1
1
  import { TuiMonthLike } from './month-like';
2
+ /**
3
+ * Optionally has year and/or month and/or day
4
+ */
2
5
  export interface TuiDayLike extends TuiMonthLike {
3
6
  readonly day?: number;
4
7
  }
@@ -1,6 +1,10 @@
1
1
  import { Observable } from 'rxjs';
2
2
  export interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {
3
3
  }
4
+ /**
5
+ * Public interface for any focusable component or directive
6
+ * TODO: shorten `nativeFocusableElement` in 4.0
7
+ */
4
8
  export interface TuiFocusableElementAccessor {
5
9
  focused: boolean;
6
10
  readonly focusedChange: Observable<boolean>;
@@ -1,4 +1,7 @@
1
1
  import { TuiYearLike } from './year-like';
2
+ /**
3
+ * Optionally has year and/or month
4
+ */
2
5
  export interface TuiMonthLike extends TuiYearLike {
3
6
  readonly month?: number;
4
7
  }
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/interfaces" />
2
5
  export * from './index';
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Optionally has year
3
+ */
1
4
  export interface TuiYearLike {
2
5
  readonly year?: number;
3
6
  }
@@ -1,3 +1,6 @@
1
1
  import { AbstractControl, AbstractControlDirective } from '@angular/forms';
2
2
  import { Observable } from 'rxjs';
3
+ /**
4
+ * Turns AbstractControl/Abstract-control-directive valueChanges into ReplaySubject(1)
5
+ */
3
6
  export declare function tuiControlValue<T>(control: AbstractControl | AbstractControlDirective): Observable<T>;
@@ -1,2 +1,5 @@
1
1
  import { OperatorFunction } from 'rxjs';
2
+ /**
3
+ * Operator to set lifespan after which current value is considered obsolete
4
+ */
2
5
  export declare function tuiIsAlive(lifespan?: number): OperatorFunction<unknown, boolean>;
@@ -1,4 +1,10 @@
1
1
  import { QueryList } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
+ /**
4
+ * Converts changes observable of a QueryList to an Observable of arrays
5
+ */
3
6
  export declare function tuiQueryListChanges<T>(queryList: QueryList<T>): Observable<readonly T[]>;
7
+ /**
8
+ * @deprecated An alias, use {@link tuiQueryListChanges} instead
9
+ */
4
10
  export declare const tuiItemsQueryListObservable: typeof tuiQueryListChanges;
@@ -1,3 +1,7 @@
1
1
  import { TuiEventWith, TuiTypedEventTarget } from '@taiga-ui/cdk/types';
2
2
  import { Observable } from 'rxjs';
3
+ /**
4
+ * Letting go of the mouse after it was pressed
5
+ * @param target
6
+ */
3
7
  export declare function tuiMouseDragFinishFrom<T extends TuiTypedEventTarget<TuiEventWith<DragEvent, T>>>(target: Exclude<T, null>): Observable<TuiEventWith<MouseEvent, T>>;
@@ -1,2 +1,5 @@
1
1
  import { Observable } from 'rxjs';
2
+ /**
3
+ * Normalizes scroll event in case element is `html` (document.documentElement)
4
+ */
2
5
  export declare function tuiScrollFrom(element: Element): Observable<Event>;
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/observables" />
2
5
  export * from './index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/cdk",
3
- "version": "3.51.0",
3
+ "version": "3.52.0-canary.164e55d",
4
4
  "description": "Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance",
5
5
  "keywords": [
6
6
  "angular",
@@ -15,9 +15,11 @@
15
15
  "repository": "https://github.com/taiga-family/taiga-ui",
16
16
  "license": "Apache-2.0",
17
17
  "dependencies": {
18
- "@ng-web-apis/common": "3.0.3",
19
- "@ng-web-apis/mutation-observer": "3.0.3",
20
- "@ng-web-apis/resize-observer": "3.0.3",
18
+ "@angular-devkit/schematics": "12.2.18",
19
+ "@ng-web-apis/common": "3.0.5",
20
+ "@ng-web-apis/mutation-observer": "3.0.5",
21
+ "@ng-web-apis/resize-observer": "3.0.5",
22
+ "@schematics/angular": "12.2.18",
21
23
  "@tinkoff/ng-event-plugins": "3.1.0",
22
24
  "@tinkoff/ng-polymorpheus": "4.2.0",
23
25
  "tslib": "2.6.2"
@@ -30,7 +32,7 @@
30
32
  "rxjs": ">=6.0.0"
31
33
  },
32
34
  "optionalDependencies": {
33
- "ng-morph": "2.2.5",
35
+ "ng-morph": "4.0.0",
34
36
  "parse5": "6.0.1"
35
37
  },
36
38
  "ng-update": {
@@ -2,6 +2,13 @@ import { PipeTransform } from '@angular/core';
2
2
  import { TuiMatcher } from '@taiga-ui/cdk/types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TuiFilterPipe implements PipeTransform {
5
+ /**
6
+ * Filters an array through a matcher function using additional arguments
7
+ *
8
+ * @param items array
9
+ * @param matcher method for filtering
10
+ * @param args arbitrary number of additional arguments
11
+ */
5
12
  transform<T>(items: readonly T[], matcher: TuiMatcher<T>, ...args: any[]): T[];
6
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiFilterPipe, never>;
7
14
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiFilterPipe, "tuiFilter">;
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/pipes/filter" />
2
5
  export * from './index';
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/pipes/is-present" />
2
5
  export * from './index';
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/pipes/keys" />
2
5
  export * from './index';
@@ -2,6 +2,13 @@ import { PipeTransform } from '@angular/core';
2
2
  import { TuiMapper } from '@taiga-ui/cdk/types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TuiMapperPipe implements PipeTransform {
5
+ /**
6
+ * Maps object to an arbitrary result through a mapper function
7
+ *
8
+ * @param value an item to transform
9
+ * @param mapper a mapping function
10
+ * @param args arbitrary number of additional arguments
11
+ */
5
12
  transform<T, G>(value: T, mapper: TuiMapper<T, G>, ...args: any[]): G;
6
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiMapperPipe, never>;
7
14
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiMapperPipe, "tuiMapper">;
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/pipes/mapper" />
2
5
  export * from './index';
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/pipes/replace" />
2
5
  export * from './index';
@@ -1,2 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
1
4
  /// <amd-module name="@taiga-ui/cdk/pipes" />
2
5
  export * from './index';
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ALL_FILES = exports.ALL_TS_FILES = void 0;
4
4
  const EXCLUDE_DIRECTORIES = [
5
5
  `e2e`,
6
+ // compiled
6
7
  `scripts`,
7
8
  `dist`,
8
9
  `node_modules`,
@@ -10,6 +11,7 @@ const EXCLUDE_DIRECTORIES = [
10
11
  `dll`,
11
12
  `tmp`,
12
13
  `__build__`,
14
+ // hidden directories
13
15
  `.rpt2_cache`,
14
16
  `.husky`,
15
17
  `.vscode`,
@@ -25,7 +27,7 @@ const EXCLUDE_FILE_PATTERNS = [
25
27
  `*__name@dasherize__*`,
26
28
  `*__name@camelize__*`,
27
29
  `*__name@underscore__*`,
28
- `*.d`,
30
+ `*.d`, // typings
29
31
  ].join(`|`);
30
32
  exports.ALL_TS_FILES = [
31
33
  `!(${EXCLUDE_FILE_PATTERNS}).ts`,
@@ -24,4 +24,3 @@ export * from './utils/is-ci';
24
24
  export * from './utils/progress';
25
25
  export * from './utils/project-root';
26
26
  export * from './utils/push-to-array-property';
27
- export * from './utils/replace-tag';
@@ -27,4 +27,3 @@ tslib_1.__exportStar(require("./utils/is-ci"), exports);
27
27
  tslib_1.__exportStar(require("./utils/progress"), exports);
28
28
  tslib_1.__exportStar(require("./utils/project-root"), exports);
29
29
  tslib_1.__exportStar(require("./utils/push-to-array-property"), exports);
30
- tslib_1.__exportStar(require("./utils/replace-tag"), exports);
@@ -71,5 +71,6 @@ function removeTaigaSchematicsPackage(tree) {
71
71
  }
72
72
  }
73
73
  catch (_b) {
74
+ // noop
74
75
  }
75
76
  }
@@ -5,6 +5,18 @@ export interface TuiSchema {
5
5
  readonly addSanitizer: boolean;
6
6
  readonly addons: readonly string[];
7
7
  readonly project: string;
8
+ /**
9
+ * @example
10
+ * ```console
11
+ * schematics ./dist/cdk:updateToV3 --allow-private --skip-deep-imports --dry-run false
12
+ * ```
13
+ */
8
14
  'skip-deep-imports'?: boolean;
15
+ /**
16
+ * @example
17
+ * ```console
18
+ * schematics ./dist/cdk:updateToV3 --skip-logs
19
+ * ```
20
+ */
9
21
  'skip-logs'?: boolean;
10
22
  }
@@ -0,0 +1,12 @@
1
+ export * from './asset';
2
+ export * from './migration-warning';
3
+ export * from './removable-input';
4
+ export * from './removed-module';
5
+ export * from './replacement-attribute';
6
+ export * from './replacement-attribute-value';
7
+ export * from './replacement-enum';
8
+ export * from './replacement-identifier';
9
+ export * from './replacement-service';
10
+ export * from './replacement-tag';
11
+ export * from './replacement-type';
12
+ export * from './template-resource';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./asset"), exports);
5
+ tslib_1.__exportStar(require("./migration-warning"), exports);
6
+ tslib_1.__exportStar(require("./removable-input"), exports);
7
+ tslib_1.__exportStar(require("./removed-module"), exports);
8
+ tslib_1.__exportStar(require("./replacement-attribute"), exports);
9
+ tslib_1.__exportStar(require("./replacement-attribute-value"), exports);
10
+ tslib_1.__exportStar(require("./replacement-enum"), exports);
11
+ tslib_1.__exportStar(require("./replacement-identifier"), exports);
12
+ tslib_1.__exportStar(require("./replacement-service"), exports);
13
+ tslib_1.__exportStar(require("./replacement-tag"), exports);
14
+ tslib_1.__exportStar(require("./replacement-type"), exports);
15
+ tslib_1.__exportStar(require("./template-resource"), exports);
@@ -1,4 +1,4 @@
1
- export interface ReplaceableAttributeValue {
1
+ export interface ReplacementAttributeValue {
2
2
  readonly attrNames: string[];
3
3
  readonly values: Array<{
4
4
  readonly from: string;
@@ -1,5 +1,5 @@
1
1
  import { Element } from 'parse5';
2
- export interface ReplaceableAttribute {
2
+ export interface ReplacementAttribute {
3
3
  readonly from: {
4
4
  readonly attrName: string;
5
5
  readonly filterFn?: (element: Element) => boolean;
@@ -1,4 +1,4 @@
1
- export interface ReplacementConst {
1
+ export interface ReplacementIdentifier {
2
2
  readonly from: {
3
3
  readonly moduleSpecifier?: string[] | string;
4
4
  readonly name: string;
@@ -1,5 +1,5 @@
1
- import { ReplacementConst } from './replacement-const';
2
- export interface ReplacementService extends ReplacementConst {
1
+ import { ReplacementIdentifier } from './replacement-identifier';
2
+ export interface ReplacementService extends ReplacementIdentifier {
3
3
  readonly replaceMethods?: Array<{
4
4
  from: string;
5
5
  to: string;
@@ -0,0 +1,5 @@
1
+ export interface ReplacementTag {
2
+ readonly addAttributes?: string[];
3
+ readonly from: string;
4
+ readonly to: string;
5
+ }
@@ -1,4 +1,4 @@
1
- export interface TypeToRename {
1
+ export interface ReplacementType {
2
2
  readonly from: string;
3
3
  readonly moduleSpecifier?: string[] | string;
4
4
  readonly preserveGenerics?: boolean;
@@ -1,3 +1,3 @@
1
1
  import { TuiSchema } from '../../../ng-add/schema';
2
- import { ReplacementConst } from '../../interfaces/replacement-const';
3
- export declare function replaceImports(replaceable: ReplacementConst[], options: TuiSchema): void;
2
+ import { ReplacementIdentifier } from '../../interfaces/replacement-identifier';
3
+ export declare function replaceImports(replaceable: ReplacementIdentifier[], options: TuiSchema): void;
@@ -1,3 +1,3 @@
1
1
  import { TuiSchema } from '../../ng-add/schema';
2
- import { TypeToRename } from '../interfaces/type-to-rename';
3
- export declare function renameTypes(options: TuiSchema, types: readonly TypeToRename[]): void;
2
+ import { ReplacementType } from '../interfaces/replacement-type';
3
+ export declare function renameTypes(options: TuiSchema, types: readonly ReplacementType[]): void;
@@ -23,7 +23,7 @@ function renameType(from, to, moduleSpecifier, preserveGenerics = false) {
23
23
  if (ng_morph_1.Node.isImportSpecifier(parent)) {
24
24
  processImport(parent, from, to);
25
25
  }
26
- else if (ng_morph_1.Node.isTypeReferenceNode(parent)) {
26
+ else if (ng_morph_1.Node.isTypeReference(parent)) {
27
27
  const targetType = preserveGenerics && to ? addGeneric(to, parent.getTypeArguments()) : to;
28
28
  parent.replaceWithText(targetType || `any`);
29
29
  }
@@ -25,7 +25,7 @@ function replaceEnumWithString(enumName, replaceValues, keepAsType = true) {
25
25
  import_manipulations_1.removeImport(parent);
26
26
  continue;
27
27
  }
28
- if (ng_morph_1.Node.isTypeReferenceNode(parent) && !keepAsType) {
28
+ if (ng_morph_1.Node.isTypeReference(parent) && !keepAsType) {
29
29
  const declaration = parent.getParent();
30
30
  (_a = declaration.removeType) === null || _a === void 0 ? void 0 : _a.call(declaration);
31
31
  continue;
@@ -43,5 +43,5 @@ function containTypeRef(node) {
43
43
  return node
44
44
  .getNameNode()
45
45
  .findReferencesAsNodes()
46
- .some(ref => ng_morph_1.Node.isTypeReferenceNode(ref.getParent()));
46
+ .some(ref => ng_morph_1.Node.isTypeReference(ref.getParent()));
47
47
  }
@@ -0,0 +1,4 @@
1
+ import { TuiSchema } from '../../ng-add/schema';
2
+ import { ReplacementIdentifier } from '../interfaces/replacement-identifier';
3
+ export declare function replaceIdentifiers(options: TuiSchema, constants: readonly ReplacementIdentifier[]): void;
4
+ export declare function replaceIdentifier({ from, to }: ReplacementIdentifier): void;