@taiga-ui/cdk 4.52.0-canary.ece97e9 → 4.52.0-canary.efbd0d4

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 (266) hide show
  1. package/README.md +1 -1
  2. package/classes/control.d.ts +4 -6
  3. package/constants/used-icons.d.ts +2 -2
  4. package/constants/version.d.ts +1 -1
  5. package/constants/version.js +1 -1
  6. package/date-time/date-fillers.d.ts +5 -5
  7. package/date-time/day-range.d.ts +1 -1
  8. package/date-time/day.d.ts +3 -3
  9. package/date-time/types.d.ts +1 -7
  10. package/directives/active-zone/active-zone.directive.d.ts +0 -2
  11. package/directives/animated/animated.directive.d.ts +1 -3
  12. package/directives/animated/index.d.ts +0 -1
  13. package/directives/auto-focus/autofocus.directive.d.ts +2 -3
  14. package/directives/copy-processor/copy-processor.directive.d.ts +2 -2
  15. package/directives/hovered/hovered.directive.d.ts +1 -2
  16. package/directives/index.d.ts +0 -5
  17. package/directives/media/media.directive.d.ts +8 -12
  18. package/directives/native-validator/native-validator.directive.d.ts +2 -2
  19. package/directives/obscured/obscured.directive.d.ts +4 -4
  20. package/directives/pan/pan.directive.d.ts +1 -2
  21. package/directives/platform/platform.directive.d.ts +2 -2
  22. package/directives/resizer/resizer.directive.d.ts +3 -4
  23. package/directives/swipe/swipe.directive.d.ts +1 -2
  24. package/directives/transitioned/transitioned.directive.d.ts +1 -0
  25. package/directives/value-changes/value-changes.directive.d.ts +2 -2
  26. package/fesm2022/taiga-ui-cdk-classes.mjs +8 -20
  27. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-cdk-constants.mjs +14 -3
  29. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-cdk-date-time.mjs +23 -24
  31. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +12 -17
  33. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +23 -72
  35. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +12 -14
  37. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -4
  39. package/fesm2022/taiga-ui-cdk-directives-control.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +8 -11
  41. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -5
  43. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +5 -8
  45. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  46. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +4 -7
  47. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -4
  49. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +11 -14
  51. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -4
  53. package/fesm2022/taiga-ui-cdk-directives-item.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-media.mjs +33 -58
  55. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +9 -11
  57. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +14 -26
  59. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +10 -12
  61. package/fesm2022/taiga-ui-cdk-directives-pan.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +9 -12
  63. package/fesm2022/taiga-ui-cdk-directives-platform.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +19 -23
  65. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +10 -12
  67. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +8 -15
  69. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -5
  71. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +8 -9
  73. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +5 -5
  75. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +3 -3
  77. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +8 -8
  78. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-cdk-directives.mjs +0 -5
  80. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-cdk-observables.mjs +2 -24
  82. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -4
  84. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -4
  86. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -5
  88. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
  90. package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-cdk-portals.mjs +16 -16
  92. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-cdk-tokens.mjs +14 -47
  94. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +2 -3
  96. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-cdk-utils-di.mjs +45 -4
  98. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +2 -74
  100. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -38
  102. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
  104. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +45 -119
  106. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
  108. package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-cdk.mjs +0 -1
  110. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  111. package/index.d.ts +0 -1
  112. package/observables/index.d.ts +0 -2
  113. package/package.json +19 -69
  114. package/pipes/index.d.ts +0 -6
  115. package/pipes/obfuscate/obfuscate.options.d.ts +1 -1
  116. package/portals/portal.d.ts +1 -2
  117. package/schematics/index.d.ts +1 -0
  118. package/schematics/index.js +1 -0
  119. package/schematics/index.js.map +1 -1
  120. package/schematics/ng-add/constants/versions.d.ts +1 -1
  121. package/schematics/ng-add/steps/add-taiga-modules.js +0 -15
  122. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  123. package/schematics/ng-update/interfaces/html-comment.d.ts +1 -1
  124. package/schematics/ng-update/interfaces/removable-input.d.ts +1 -1
  125. package/schematics/ng-update/interfaces/replacement-attribute-to-directive.d.ts +1 -1
  126. package/schematics/ng-update/interfaces/replacement-attribute-value.d.ts +1 -1
  127. package/schematics/ng-update/interfaces/replacement-attribute.d.ts +1 -1
  128. package/schematics/ng-update/interfaces/replacement-tag.d.ts +1 -1
  129. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
  130. package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
  131. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
  132. package/schematics/ng-update/v4/steps/migrate-templates.d.ts +2 -2
  133. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +13 -13
  134. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  135. package/schematics/ng-update/v5/index.js +2 -0
  136. package/schematics/ng-update/v5/index.js.map +1 -1
  137. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.d.ts +2 -0
  138. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js +22 -0
  139. package/schematics/ng-update/v5/steps/constants/attrs-to-replace.js.map +1 -0
  140. package/schematics/ng-update/v5/steps/constants/functions.js +1 -6
  141. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -1
  142. package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
  143. package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
  144. package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
  145. package/schematics/ng-update/v5/steps/migrate-templates.d.ts +2 -2
  146. package/schematics/ng-update/v5/steps/migrate-templates.js +6 -0
  147. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -1
  148. package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
  149. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
  150. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
  151. package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
  152. package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
  153. package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
  154. package/schematics/utils/run-migration.d.ts +2 -2
  155. package/schematics/utils/run-migration.js +4 -3
  156. package/schematics/utils/run-migration.js.map +1 -1
  157. package/schematics/utils/templates/elements.d.ts +4 -1
  158. package/schematics/utils/templates/elements.js.map +1 -1
  159. package/schematics/utils/templates/ng-component-input-manipulations.d.ts +3 -3
  160. package/tokens/environment.d.ts +0 -13
  161. package/tokens/index.d.ts +0 -2
  162. package/tokens/removed-element.d.ts +0 -3
  163. package/types/index.d.ts +0 -2
  164. package/utils/di/index.d.ts +3 -0
  165. package/utils/dom/index.d.ts +0 -6
  166. package/utils/focus/get-closest-focusable.d.ts +1 -6
  167. package/utils/focus/index.d.ts +4 -6
  168. package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
  169. package/utils/index.d.ts +0 -1
  170. package/utils/math/index.d.ts +0 -2
  171. package/utils/miscellaneous/generate-id.d.ts +1 -0
  172. package/utils/miscellaneous/index.d.ts +2 -10
  173. package/utils/miscellaneous/sanitize-text.d.ts +23 -0
  174. package/directives/animated/animated-parent.directive.d.ts +0 -10
  175. package/directives/click-outside/click-outside.directive.d.ts +0 -14
  176. package/directives/click-outside/index.d.ts +0 -1
  177. package/directives/droppable/droppable.directive.d.ts +0 -8
  178. package/directives/droppable/index.d.ts +0 -1
  179. package/directives/let/index.d.ts +0 -2
  180. package/directives/let/let-context.d.ts +0 -11
  181. package/directives/let/let.directive.d.ts +0 -18
  182. package/directives/popover/index.d.ts +0 -1
  183. package/directives/popover/popover.directive.d.ts +0 -14
  184. package/directives/repeat-times/index.d.ts +0 -1
  185. package/directives/repeat-times/repeat-times.directive.d.ts +0 -22
  186. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -39
  187. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
  188. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -37
  189. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
  190. package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -53
  191. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
  192. package/fesm2022/taiga-ui-cdk-directives-popover.mjs +0 -32
  193. package/fesm2022/taiga-ui-cdk-directives-popover.mjs.map +0 -1
  194. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -61
  195. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
  196. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -33
  197. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
  198. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -25
  199. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
  200. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -24
  201. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
  202. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -25
  203. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
  204. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -26
  205. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
  206. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -24
  207. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
  208. package/fesm2022/taiga-ui-cdk-services.mjs +0 -151
  209. package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
  210. package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -195
  211. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
  212. package/observables/must-be-present.d.ts +0 -5
  213. package/observables/query-list-observable.d.ts +0 -6
  214. package/pipes/animation/animation.pipe.d.ts +0 -13
  215. package/pipes/animation/index.d.ts +0 -1
  216. package/pipes/is-present/index.d.ts +0 -1
  217. package/pipes/is-present/is-present.pipe.d.ts +0 -7
  218. package/pipes/keys/index.d.ts +0 -1
  219. package/pipes/keys/keys.pipe.d.ts +0 -7
  220. package/pipes/repeat-times/index.d.ts +0 -7
  221. package/pipes/replace/index.d.ts +0 -1
  222. package/pipes/replace/replace.pipe.d.ts +0 -7
  223. package/pipes/to-array/index.d.ts +0 -1
  224. package/pipes/to-array/to-array.pipe.d.ts +0 -7
  225. package/services/id.service.d.ts +0 -8
  226. package/services/index.d.ts +0 -4
  227. package/services/popover.service.d.ts +0 -25
  228. package/services/scroll.service.d.ts +0 -13
  229. package/services/theme-color.service.d.ts +0 -18
  230. package/tokens/base-href.d.ts +0 -2
  231. package/tokens/range.d.ts +0 -5
  232. package/types/safe-html.d.ts +0 -2
  233. package/types/values-of.d.ts +0 -1
  234. package/utils/color/get-gradient-data.d.ts +0 -1
  235. package/utils/color/hex-to-rgb.d.ts +0 -1
  236. package/utils/color/hex-to-rgba.d.ts +0 -3
  237. package/utils/color/hsv-to-rgb.d.ts +0 -4
  238. package/utils/color/index.d.ts +0 -9
  239. package/utils/color/parse-color.d.ts +0 -1
  240. package/utils/color/parse-gradient.d.ts +0 -10
  241. package/utils/color/rgb-to-hex.d.ts +0 -1
  242. package/utils/color/rgb-to-hsv.d.ts +0 -1
  243. package/utils/color/rgba-to-hex.d.ts +0 -2
  244. package/utils/dom/get-element-point.d.ts +0 -2
  245. package/utils/dom/is-current-target.d.ts +0 -1
  246. package/utils/dom/is-inside-iframe.d.ts +0 -4
  247. package/utils/dom/is-node-in.d.ts +0 -8
  248. package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
  249. package/utils/dom/value-binding.d.ts +0 -3
  250. package/utils/focus/blur-native-focused.d.ts +0 -4
  251. package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
  252. package/utils/math/to-integer.d.ts +0 -1
  253. package/utils/math/to-radians.d.ts +0 -4
  254. package/utils/miscellaneous/change-date-separator.d.ts +0 -1
  255. package/utils/miscellaneous/create-token.d.ts +0 -9
  256. package/utils/miscellaneous/flat-length.d.ts +0 -6
  257. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
  258. package/utils/miscellaneous/is-falsy.d.ts +0 -1
  259. package/utils/miscellaneous/is-valid-url.d.ts +0 -4
  260. package/utils/miscellaneous/uniq-by.d.ts +0 -1
  261. /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
  262. /package/utils/{miscellaneous → di}/provide-options.d.ts +0 -0
  263. /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
  264. /package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -0
  265. /package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -0
  266. /package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-let.mjs","sources":["../../../projects/cdk/directives/let/let-context.ts","../../../projects/cdk/directives/let/let.directive.ts","../../../projects/cdk/directives/let/taiga-ui-cdk-directives-let.ts"],"sourcesContent":["import {type TuiContext} from '@taiga-ui/cdk/types';\n\nimport {type TuiLet} from './let.directive';\n\n/**\n * @internal\n */\nexport class TuiLetContext<T> implements TuiContext<T> {\n constructor(private readonly internalDirectiveInstance: TuiLet<T>) {}\n\n public get $implicit(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n\n public get tuiLet(): T {\n return this.internalDirectiveInstance.tuiLet;\n }\n}\n","import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\n\nimport {TuiLetContext} from './let-context';\n\n/**\n * @deprecated use @let instead\n */\n@Directive({\n standalone: true,\n selector: '[tuiLet]',\n})\nexport class TuiLet<T> {\n @Input()\n public tuiLet!: T;\n\n constructor() {\n inject(ViewContainerRef).createEmbeddedView(\n inject(TemplateRef<TuiLetContext<T>>),\n new TuiLetContext<T>(this),\n );\n }\n\n /**\n * Asserts the correct type of the context for the template that `TuiLet` will render.\n *\n * The presence of this method is a signal to the Ivy template type-check compiler that the\n * `TuiLet` structural directive renders its template with a specific context type.\n */\n public static ngTemplateContextGuard<T>(\n _dir: TuiLet<T>,\n _ctx: unknown,\n ): _ctx is TuiLetContext<T> {\n return true;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIA;;AAEG;MACU,aAAa,CAAA;AACtB,IAAA,WAAA,CAA6B,yBAAoC,EAAA;QAApC,IAAyB,CAAA,yBAAA,GAAzB,yBAAyB;;AAEtD,IAAA,IAAW,SAAS,GAAA;AAChB,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAGhD,IAAA,IAAW,MAAM,GAAA;AACb,QAAA,OAAO,IAAI,CAAC,yBAAyB,CAAC,MAAM;;AAEnD;;ACbD;;AAEG;MAKU,MAAM,CAAA;AAIf,IAAA,WAAA,GAAA;AACI,QAAA,MAAM,CAAC,gBAAgB,CAAC,CAAC,kBAAkB,CACvC,MAAM,EAAC,WAA6B,EAAC,EACrC,IAAI,aAAa,CAAI,IAAI,CAAC,CAC7B;;AAGL;;;;;AAKG;AACI,IAAA,OAAO,sBAAsB,CAChC,IAAe,EACf,IAAa,EAAA;AAEb,QAAA,OAAO,IAAI;;+GArBN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAN,MAAM,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAN,MAAM,EAAA,UAAA,EAAA,CAAA;kBAJlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA;wDAGU,MAAM,EAAA,CAAA;sBADZ;;;ACZL;;AAEG;;;;"}
@@ -1,32 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Directive } from '@angular/core';
3
- import { tuiIfMap } from '@taiga-ui/cdk/observables';
4
- import { TuiPopoverService } from '@taiga-ui/cdk/services';
5
- import { PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
6
- import { Subject, distinctUntilChanged, ignoreElements, endWith, share } from 'rxjs';
7
-
8
- class TuiPopoverDirective extends PolymorpheusTemplate {
9
- constructor() {
10
- super(...arguments);
11
- this.service = inject((TuiPopoverService));
12
- this.open$ = new Subject();
13
- this.options = {};
14
- this.open = false;
15
- this.openChange = this.open$.pipe(distinctUntilChanged(), tuiIfMap(() => this.service.open(this, this.options).pipe(ignoreElements(), endWith(false))), share());
16
- }
17
- ngOnChanges() {
18
- this.open$.next(this.open);
19
- }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiPopoverDirective, isStandalone: true, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverDirective, decorators: [{
24
- type: Directive
25
- }] });
26
-
27
- /**
28
- * Generated bundle index. Do not edit.
29
- */
30
-
31
- export { TuiPopoverDirective };
32
- //# sourceMappingURL=taiga-ui-cdk-directives-popover.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-popover.mjs","sources":["../../../projects/cdk/directives/popover/popover.directive.ts","../../../projects/cdk/directives/popover/taiga-ui-cdk-directives-popover.ts"],"sourcesContent":["import {Directive, inject, type OnChanges} from '@angular/core';\nimport {tuiIfMap} from '@taiga-ui/cdk/observables';\nimport {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {PolymorpheusTemplate} from '@taiga-ui/polymorpheus';\nimport {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs';\n\n@Directive()\nexport abstract class TuiPopoverDirective<T>\n extends PolymorpheusTemplate<TuiPopover<T, void>>\n implements OnChanges\n{\n private readonly service = inject(TuiPopoverService<T>);\n private readonly open$ = new Subject<boolean>();\n\n public options: Partial<T> = {};\n public open = false;\n\n public readonly openChange = this.open$.pipe(\n distinctUntilChanged(),\n tuiIfMap(() =>\n this.service.open(this, this.options).pipe(ignoreElements(), endWith(false)),\n ),\n share(),\n );\n\n public ngOnChanges(): void {\n this.open$.next(this.open);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAOM,MAAgB,mBAClB,SAAQ,oBAAyC,CAAA;AAFrD,IAAA,WAAA,GAAA;;AAKqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,EAAC,iBAAoB,EAAC;AACtC,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,OAAO,EAAW;QAExC,IAAO,CAAA,OAAA,GAAe,EAAE;QACxB,IAAI,CAAA,IAAA,GAAG,KAAK;AAEH,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CACxC,oBAAoB,EAAE,EACtB,QAAQ,CAAC,MACL,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAC/E,EACD,KAAK,EAAE,CACV;AAKJ;IAHU,WAAW,GAAA;QACd,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;;+GAnBZ,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,eAAA,EAAA,IAAA,EAAA,aAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBADxC;;;ACND;;AAEG;;;;"}
@@ -1,61 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
3
- import { tuiClamp } from '@taiga-ui/cdk/utils/math';
4
-
5
- const MAX_VALUE = 0x10000;
6
- class TuiRepeatTimesContext {
7
- constructor($implicit) {
8
- this.$implicit = $implicit;
9
- }
10
- }
11
- /**
12
- * Directive similar to ngFor but using a number of repetitions rather than an array
13
- *
14
- * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
15
- * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
16
- * {@link TuiRepeatTimesContext.$implicit index} of a template instance.
17
- */
18
- class TuiRepeatTimes {
19
- constructor() {
20
- this.vcr = inject(ViewContainerRef);
21
- this.template = inject((TemplateRef));
22
- }
23
- set tuiRepeatTimesOf(count) {
24
- const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));
25
- const { length } = this.vcr;
26
- if (count < length) {
27
- this.removeContainers(length - count);
28
- }
29
- else {
30
- this.addContainers(safeCount);
31
- }
32
- }
33
- addContainers(count) {
34
- for (let index = this.vcr.length; index < count; index++) {
35
- this.vcr.createEmbeddedView(this.template, new TuiRepeatTimesContext(index));
36
- }
37
- }
38
- removeContainers(amount) {
39
- for (let index = 0; index < amount; index++) {
40
- this.vcr.remove();
41
- }
42
- }
43
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
44
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: "tuiRepeatTimesOf" }, ngImport: i0 }); }
45
- }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, decorators: [{
47
- type: Directive,
48
- args: [{
49
- standalone: true,
50
- selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',
51
- }]
52
- }], propDecorators: { tuiRepeatTimesOf: [{
53
- type: Input
54
- }] } });
55
-
56
- /**
57
- * Generated bundle index. Do not edit.
58
- */
59
-
60
- export { TuiRepeatTimes, TuiRepeatTimesContext };
61
- //# sourceMappingURL=taiga-ui-cdk-directives-repeat-times.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-repeat-times.mjs","sources":["../../../projects/cdk/directives/repeat-times/repeat-times.directive.ts","../../../projects/cdk/directives/repeat-times/taiga-ui-cdk-directives-repeat-times.ts"],"sourcesContent":["import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\n\nconst MAX_VALUE = 0x10000;\n\nexport class TuiRepeatTimesContext implements TuiContext<number> {\n constructor(public readonly $implicit: number) {}\n}\n\n/**\n * Directive similar to ngFor but using a number of repetitions rather than an array\n *\n * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.\n * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores\n * {@link TuiRepeatTimesContext.$implicit index} of a template instance.\n */\n@Directive({\n standalone: true,\n selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly vcr = inject(ViewContainerRef);\n private readonly template = inject(TemplateRef<TuiRepeatTimesContext>);\n\n @Input()\n public set tuiRepeatTimesOf(count: number) {\n const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));\n\n const {length} = this.vcr;\n\n if (count < length) {\n this.removeContainers(length - count);\n } else {\n this.addContainers(safeCount);\n }\n }\n\n private addContainers(count: number): void {\n for (let index = this.vcr.length; index < count; index++) {\n this.vcr.createEmbeddedView<TuiRepeatTimesContext>(\n this.template,\n new TuiRepeatTimesContext(index),\n );\n }\n }\n\n private removeContainers(amount: number): void {\n for (let index = 0; index < amount; index++) {\n this.vcr.remove();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA,MAAM,SAAS,GAAG,OAAO;MAEZ,qBAAqB,CAAA;AAC9B,IAAA,WAAA,CAA4B,SAAiB,EAAA;QAAjB,IAAS,CAAA,SAAA,GAAT,SAAS;;AACxC;AAED;;;;;;AAMG;MAKU,cAAc,CAAA;AAJ3B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,EAAC,WAAkC,EAAC;AA6BzE;IA3BG,IACW,gBAAgB,CAAC,KAAa,EAAA;AACrC,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;AAE3D,QAAA,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC,GAAG;AAEzB,QAAA,IAAI,KAAK,GAAG,MAAM,EAAE;AAChB,YAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,GAAG,KAAK,CAAC;;aAClC;AACH,YAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC;;;AAI7B,IAAA,aAAa,CAAC,KAAa,EAAA;AAC/B,QAAA,KAAK,IAAI,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE;AACtD,YAAA,IAAI,CAAC,GAAG,CAAC,kBAAkB,CACvB,IAAI,CAAC,QAAQ,EACb,IAAI,qBAAqB,CAAC,KAAK,CAAC,CACnC;;;AAID,IAAA,gBAAgB,CAAC,MAAc,EAAA;AACnC,QAAA,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,EAAE,EAAE;AACzC,YAAA,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;;;+GA5BhB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oCAAA,EAAA,MAAA,EAAA,EAAA,gBAAA,EAAA,kBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA;8BAMc,gBAAgB,EAAA,CAAA;sBAD1B;;;ACzBL;;AAEG;;;;"}
@@ -1,33 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Pipe } from '@angular/core';
3
- import { TUI_ANIMATIONS_SPEED } from '@taiga-ui/core/tokens';
4
- import { tuiGetDuration } from '@taiga-ui/core/utils/miscellaneous';
5
-
6
- class TuiAnimationPipe {
7
- constructor() {
8
- this.speed = inject(TUI_ANIMATIONS_SPEED);
9
- this.transform = ({ duration, speed, value, ...params } = {}) => ({
10
- value: value ?? '',
11
- params: {
12
- ...params,
13
- duration: (duration ?? 1) * tuiGetDuration(speed ?? this.speed),
14
- },
15
- });
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
18
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, isStandalone: true, name: "tuiAnimation" }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAnimationPipe, decorators: [{
21
- type: Pipe,
22
- args: [{
23
- standalone: true,
24
- name: 'tuiAnimation',
25
- }]
26
- }] });
27
-
28
- /**
29
- * Generated bundle index. Do not edit.
30
- */
31
-
32
- export { TuiAnimationPipe };
33
- //# sourceMappingURL=taiga-ui-cdk-pipes-animation.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-animation.mjs","sources":["../../../projects/cdk/pipes/animation/animation.pipe.ts","../../../projects/cdk/pipes/animation/taiga-ui-cdk-pipes-animation.ts"],"sourcesContent":["import {inject, Pipe, type PipeTransform} from '@angular/core';\nimport {type TuiDurationOptions} from '@taiga-ui/core/animations';\nimport {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens';\nimport {tuiGetDuration} from '@taiga-ui/core/utils/miscellaneous';\n\n@Pipe({\n standalone: true,\n name: 'tuiAnimation',\n})\nexport class TuiAnimationPipe implements PipeTransform {\n private readonly speed = inject(TUI_ANIMATIONS_SPEED);\n public readonly transform = ({\n duration,\n speed,\n value,\n ...params\n }: Partial<{duration: number; speed: number; value: string}> &\n Record<string, any> = {}): TuiDurationOptions => ({\n value: value ?? '',\n params: {\n ...params,\n duration: (duration ?? 1) * tuiGetDuration(speed ?? this.speed),\n },\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,gBAAgB,CAAA;AAJ7B,IAAA,WAAA,GAAA;AAKqB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,oBAAoB,CAAC;AACrC,QAAA,IAAA,CAAA,SAAS,GAAG,CAAC,EACzB,QAAQ,EACR,KAAK,EACL,KAAK,EACL,GAAG,MAAM,EAEa,GAAA,EAAE,MAA0B;YAClD,KAAK,EAAE,KAAK,IAAI,EAAE;AAClB,YAAA,MAAM,EAAE;AACJ,gBAAA,GAAG,MAAM;AACT,gBAAA,QAAQ,EAAE,CAAC,QAAQ,IAAI,CAAC,IAAI,cAAc,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC;AAClE,aAAA;AACJ,SAAA,CAAC;AACL;+GAfY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -1,25 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
- import { tuiIsPresent } from '@taiga-ui/cdk/utils';
4
-
5
- class TuiIsPresentPipe {
6
- transform(value) {
7
- return tuiIsPresent(value);
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, isStandalone: true, name: "tuiIsPresent" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIsPresentPipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- standalone: true,
16
- name: 'tuiIsPresent',
17
- }]
18
- }] });
19
-
20
- /**
21
- * Generated bundle index. Do not edit.
22
- */
23
-
24
- export { TuiIsPresentPipe };
25
- //# sourceMappingURL=taiga-ui-cdk-pipes-is-present.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-is-present.mjs","sources":["../../../projects/cdk/pipes/is-present/is-present.pipe.ts","../../../projects/cdk/pipes/is-present/taiga-ui-cdk-pipes-is-present.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n standalone: true,\n name: 'tuiIsPresent',\n})\nexport class TuiIsPresentPipe implements PipeTransform {\n public transform<T>(value?: T | null): value is T {\n return tuiIsPresent(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,gBAAgB,CAAA;AAClB,IAAA,SAAS,CAAI,KAAgB,EAAA;AAChC,QAAA,OAAO,YAAY,CAAC,KAAK,CAAC;;+GAFrB,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,cAAA,EAAA,CAAA,CAAA;;4FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAJ5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -1,24 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
-
4
- class TuiKeysPipe {
5
- transform(object) {
6
- return Object.keys(object);
7
- }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, isStandalone: true, name: "tuiKeys" }); }
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiKeysPipe, decorators: [{
12
- type: Pipe,
13
- args: [{
14
- standalone: true,
15
- name: 'tuiKeys',
16
- }]
17
- }] });
18
-
19
- /**
20
- * Generated bundle index. Do not edit.
21
- */
22
-
23
- export { TuiKeysPipe };
24
- //# sourceMappingURL=taiga-ui-cdk-pipes-keys.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-keys.mjs","sources":["../../../projects/cdk/pipes/keys/keys.pipe.ts","../../../projects/cdk/pipes/keys/taiga-ui-cdk-pipes-keys.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n standalone: true,\n name: 'tuiKeys',\n})\nexport class TuiKeysPipe implements PipeTransform {\n public transform(object: Record<any, any>): string[] {\n return Object.keys(object);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,WAAW,CAAA;AACb,IAAA,SAAS,CAAC,MAAwB,EAAA;AACrC,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;;+GAFrB,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,CAAA;;4FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,SAAS;AAClB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,25 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
- import { tuiClamp } from '@taiga-ui/cdk/utils';
4
-
5
- class TuiRepeatTimesPipe {
6
- transform(n) {
7
- return Array.from({ length: tuiClamp(n, 0, n) }, (_, i) => i);
8
- }
9
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
10
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, isStandalone: true, name: "tuiRepeatTimes" }); }
11
- }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimesPipe, decorators: [{
13
- type: Pipe,
14
- args: [{
15
- standalone: true,
16
- name: 'tuiRepeatTimes',
17
- }]
18
- }] });
19
-
20
- /**
21
- * Generated bundle index. Do not edit.
22
- */
23
-
24
- export { TuiRepeatTimesPipe };
25
- //# sourceMappingURL=taiga-ui-cdk-pipes-repeat-times.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-repeat-times.mjs","sources":["../../../projects/cdk/pipes/repeat-times/index.ts","../../../projects/cdk/pipes/repeat-times/taiga-ui-cdk-pipes-repeat-times.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\nimport {tuiClamp} from '@taiga-ui/cdk/utils';\n\n@Pipe({\n standalone: true,\n name: 'tuiRepeatTimes',\n})\nexport class TuiRepeatTimesPipe implements PipeTransform {\n public transform(n: number): number[] {\n return Array.from({length: tuiClamp(n, 0, n)}, (_, i) => i);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,kBAAkB,CAAA;AACpB,IAAA,SAAS,CAAC,CAAS,EAAA;QACtB,OAAO,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;;+GAFtD,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAlB,kBAAkB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,CAAA;;4FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;;;ACND;;AAEG;;;;"}
@@ -1,26 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
-
4
- class TuiReplacePipe {
5
- transform(value, search, replaceValue) {
6
- return (value?.replace(search,
7
- // TS bug: https://github.com/microsoft/TypeScript/issues/22378
8
- replaceValue) ?? '');
9
- }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
11
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiReplacePipe, isStandalone: true, name: "tuiReplace" }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiReplacePipe, decorators: [{
14
- type: Pipe,
15
- args: [{
16
- standalone: true,
17
- name: 'tuiReplace',
18
- }]
19
- }] });
20
-
21
- /**
22
- * Generated bundle index. Do not edit.
23
- */
24
-
25
- export { TuiReplacePipe };
26
- //# sourceMappingURL=taiga-ui-cdk-pipes-replace.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-replace.mjs","sources":["../../../projects/cdk/pipes/replace/replace.pipe.ts","../../../projects/cdk/pipes/replace/taiga-ui-cdk-pipes-replace.ts"],"sourcesContent":["import {Pipe, type PipeTransform} from '@angular/core';\n\n@Pipe({\n standalone: true,\n name: 'tuiReplace',\n})\nexport class TuiReplacePipe implements PipeTransform {\n public transform(\n value: string | null | undefined,\n search: RegExp | string,\n replaceValue: string | ((substring: string, ...args: unknown[]) => string),\n ): string {\n return (\n value?.replace(\n search,\n // TS bug: https://github.com/microsoft/TypeScript/issues/22378\n replaceValue as unknown as string,\n ) ?? ''\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,cAAc,CAAA;AAChB,IAAA,SAAS,CACZ,KAAgC,EAChC,MAAuB,EACvB,YAA0E,EAAA;AAE1E,QAAA,QACI,KAAK,EAAE,OAAO,CACV,MAAM;;AAEN,QAAA,YAAiC,CACpC,IAAI,EAAE;;+GAXN,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,YAAY;AACrB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,24 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe } from '@angular/core';
3
-
4
- class TuiToArrayPipe {
5
- transform(items) {
6
- return Array.from(items);
7
- }
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToArrayPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
9
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: TuiToArrayPipe, isStandalone: true, name: "tuiToArray" }); }
10
- }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiToArrayPipe, decorators: [{
12
- type: Pipe,
13
- args: [{
14
- standalone: true,
15
- name: 'tuiToArray',
16
- }]
17
- }] });
18
-
19
- /**
20
- * Generated bundle index. Do not edit.
21
- */
22
-
23
- export { TuiToArrayPipe };
24
- //# sourceMappingURL=taiga-ui-cdk-pipes-to-array.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-pipes-to-array.mjs","sources":["../../../projects/cdk/pipes/to-array/to-array.pipe.ts","../../../projects/cdk/pipes/to-array/taiga-ui-cdk-pipes-to-array.ts"],"sourcesContent":["import {Pipe, type PipeTransform, type QueryList} from '@angular/core';\n\n@Pipe({\n standalone: true,\n name: 'tuiToArray',\n})\nexport class TuiToArrayPipe implements PipeTransform {\n public transform<T>(items: Map<any, any> | QueryList<T> | Set<any>): readonly T[] {\n return Array.from(items);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAMa,cAAc,CAAA;AAChB,IAAA,SAAS,CAAI,KAA8C,EAAA;AAC9D,QAAA,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;;+GAFnB,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,YAAY;AACrB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,151 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, inject, INJECTOR, NgZone, InjectionToken } from '@angular/core';
3
- import { tuiProvide } from '@taiga-ui/cdk/utils';
4
- import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
5
- import { Observable, of, defer, switchMap, map, takeUntil, timer, endWith, tap } from 'rxjs';
6
- import { WA_PERFORMANCE, WA_ANIMATION_FRAME } from '@ng-web-apis/common';
7
- import { tuiZonefreeScheduler } from '@taiga-ui/cdk/observables';
8
- import { tuiClamp } from '@taiga-ui/cdk/utils/math';
9
- import { tuiEaseInOutQuad } from '@taiga-ui/cdk/utils/miscellaneous';
10
- import { DOCUMENT } from '@angular/common';
11
- import { Meta } from '@angular/platform-browser';
12
-
13
- class TuiIdService {
14
- static { this.autoId = 0; }
15
- generate() {
16
- return `tui_${TuiIdService.autoId++}${Date.now()}`;
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
19
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, providedIn: 'root' }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, decorators: [{
22
- type: Injectable,
23
- args: [{
24
- providedIn: 'root',
25
- }]
26
- }] });
27
- function tuiInjectId() {
28
- return inject(TuiIdService).generate();
29
- }
30
-
31
- class TuiPopoverService {
32
- constructor(items, component, options = {}) {
33
- this.options = options;
34
- this.id = inject(TuiIdService);
35
- this.component = new PolymorpheusComponent(component, inject(INJECTOR));
36
- this.items$ = inject(items);
37
- }
38
- open(content, options = {}) {
39
- return new Observable((observer) => {
40
- const item = {
41
- ...this.options,
42
- ...options,
43
- content,
44
- $implicit: observer,
45
- component: this.component,
46
- createdAt: Date.now(),
47
- id: this.id.generate(),
48
- completeWith: (result) => {
49
- observer.next(result);
50
- observer.complete();
51
- },
52
- };
53
- this.items$.next([...this.items$.value, item]);
54
- return () => {
55
- this.items$.next(this.items$.value.filter((value) => value !== item));
56
- };
57
- });
58
- }
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverService, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
60
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverService }); }
61
- }
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiPopoverService, decorators: [{
63
- type: Injectable
64
- }], ctorParameters: () => [{ type: undefined }, { type: undefined }, { type: undefined }] });
65
- function tuiAsPopover(popover) {
66
- return tuiProvide(TuiPopoverService, popover);
67
- }
68
-
69
- /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
70
- const SCROLL_TIME = 300;
71
- function getX(elementOrWindow) {
72
- return 'scrollX' in elementOrWindow
73
- ? elementOrWindow.scrollX
74
- : elementOrWindow.scrollLeft;
75
- }
76
- function getY(elementOrWindow) {
77
- return 'scrollY' in elementOrWindow
78
- ? elementOrWindow.scrollY
79
- : elementOrWindow.scrollTop;
80
- }
81
- /**
82
- * @deprecated: use native scroll
83
- */
84
- class TuiScrollService {
85
- constructor() {
86
- this.performanceRef = inject(WA_PERFORMANCE);
87
- this.animationFrame$ = inject(WA_ANIMATION_FRAME);
88
- this.zone = inject(NgZone);
89
- }
90
- scroll$(elementOrWindow, scrollTop, scrollLeft = getX(elementOrWindow), duration = SCROLL_TIME) {
91
- ngDevMode && console.assert(duration >= 0, 'duration cannot be negative');
92
- ngDevMode && console.assert(scrollTop >= 0, 'scrollTop cannot be negative');
93
- ngDevMode && console.assert(scrollLeft >= 0, 'scrollLeft cannot be negative');
94
- const initialTop = getY(elementOrWindow);
95
- const initialLeft = getX(elementOrWindow);
96
- const deltaTop = scrollTop - initialTop;
97
- const deltaLeft = scrollLeft - initialLeft;
98
- const observable = !duration
99
- ? of([scrollTop, scrollLeft])
100
- : defer(() => of(this.performanceRef.now())).pipe(switchMap((start) => this.animationFrame$.pipe(map((now) => now - start))), map((elapsed) => tuiEaseInOutQuad(tuiClamp(elapsed / duration, 0, 1))), map((percent) => [
101
- initialTop + deltaTop * percent,
102
- initialLeft + deltaLeft * percent,
103
- ]), takeUntil(timer(duration, tuiZonefreeScheduler(this.zone))), endWith([scrollTop, scrollLeft]));
104
- return observable.pipe(tap(([scrollTop, scrollLeft]) => {
105
- elementOrWindow.scrollTo?.(scrollLeft, scrollTop);
106
- }));
107
- }
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
109
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiScrollService, providedIn: 'root' }); }
110
- }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiScrollService, decorators: [{
112
- type: Injectable,
113
- args: [{
114
- providedIn: 'root',
115
- }]
116
- }] });
117
-
118
- const TUI_THEME_COLOR = new InjectionToken(ngDevMode ? 'TUI_THEME_COLOR' : '', {
119
- factory: () => inject(Meta).getTag('name="theme-color"')?.content ?? '',
120
- });
121
- class TuiThemeColorService {
122
- constructor() {
123
- this.current = inject(TUI_THEME_COLOR);
124
- this.doc = inject(DOCUMENT);
125
- this.meta = inject(Meta);
126
- this.color = this.current;
127
- }
128
- get color() {
129
- return this.current;
130
- }
131
- set color(content) {
132
- this.current = content;
133
- this.meta.updateTag({ name: 'theme-color', content });
134
- this.doc.documentElement.style.setProperty('--tui-theme-color', content);
135
- }
136
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
137
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, providedIn: 'root' }); }
138
- }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, decorators: [{
140
- type: Injectable,
141
- args: [{
142
- providedIn: 'root',
143
- }]
144
- }], ctorParameters: () => [] });
145
-
146
- /**
147
- * Generated bundle index. Do not edit.
148
- */
149
-
150
- export { TUI_THEME_COLOR, TuiIdService, TuiPopoverService, TuiScrollService, TuiThemeColorService, tuiAsPopover, tuiInjectId };
151
- //# sourceMappingURL=taiga-ui-cdk-services.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-services.mjs","sources":["../../../projects/cdk/services/id.service.ts","../../../projects/cdk/services/popover.service.ts","../../../projects/cdk/services/scroll.service.ts","../../../projects/cdk/services/theme-color.service.ts","../../../projects/cdk/services/taiga-ui-cdk-services.ts"],"sourcesContent":["import {inject, Injectable} from '@angular/core';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiIdService {\n private static autoId = 0;\n\n public generate(): string {\n return `tui_${TuiIdService.autoId++}${Date.now()}`;\n }\n}\n\nexport function tuiInjectId(): string {\n return inject(TuiIdService).generate();\n}\n","import {\n inject,\n Injectable,\n INJECTOR,\n type Provider,\n type ProviderToken,\n type Type,\n} from '@angular/core';\nimport {type TuiContext} from '@taiga-ui/cdk/types';\nimport {tuiProvide} from '@taiga-ui/cdk/utils';\nimport {PolymorpheusComponent, type PolymorpheusContent} from '@taiga-ui/polymorpheus';\nimport {type BehaviorSubject, Observable, type Observer} from 'rxjs';\n\nimport {TuiIdService} from './id.service';\n\nexport interface TuiPopoverContext<O> extends TuiContext<Observer<O>> {\n readonly component: PolymorpheusComponent<any>;\n readonly createdAt: number;\n readonly id: string;\n readonly completeWith: (value: O) => void;\n}\n\nexport type TuiPopover<T, O> = T &\n TuiPopoverContext<O> & {\n content: PolymorpheusContent<T & TuiPopoverContext<O>>;\n };\n\n@Injectable()\nexport abstract class TuiPopoverService<T, K = void> {\n private readonly component: PolymorpheusComponent<any>;\n private readonly id = inject(TuiIdService);\n\n protected readonly items$: BehaviorSubject<ReadonlyArray<TuiPopover<T, any>>>;\n\n constructor(\n items: ProviderToken<BehaviorSubject<ReadonlyArray<TuiPopover<T, any>>>>,\n component: Type<any>,\n protected readonly options: T = {} as T,\n ) {\n this.component = new PolymorpheusComponent(component, inject(INJECTOR));\n this.items$ = inject(items);\n }\n\n public open<G = void>(\n content: PolymorpheusContent<T & TuiPopoverContext<K extends void ? G : K>>,\n options: Partial<T> = {},\n ): Observable<K extends void ? G : K> {\n return new Observable((observer) => {\n const item = {\n ...this.options,\n ...options,\n content,\n $implicit: observer,\n component: this.component,\n createdAt: Date.now(),\n id: this.id.generate(),\n completeWith: (result: K extends void ? G : K): void => {\n observer.next(result);\n observer.complete();\n },\n };\n\n this.items$.next([...this.items$.value, item]);\n\n return () => {\n this.items$.next(this.items$.value.filter((value) => value !== item));\n };\n });\n }\n}\n\nexport function tuiAsPopover(popover: Type<TuiPopoverService<any>>): Provider {\n return tuiProvide(TuiPopoverService, popover);\n}\n","/// <reference types=\"@taiga-ui/tsconfig/ng-dev-mode\" />\nimport {inject, Injectable, NgZone} from '@angular/core';\nimport {WA_ANIMATION_FRAME, WA_PERFORMANCE} from '@ng-web-apis/common';\nimport {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables';\nimport {tuiClamp} from '@taiga-ui/cdk/utils/math';\nimport {tuiEaseInOutQuad} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n defer,\n endWith,\n map,\n type Observable,\n of,\n switchMap,\n takeUntil,\n tap,\n timer,\n} from 'rxjs';\n\nconst SCROLL_TIME = 300;\n\nfunction getX(elementOrWindow: Element | Window): number {\n return 'scrollX' in elementOrWindow\n ? elementOrWindow.scrollX\n : elementOrWindow.scrollLeft;\n}\n\nfunction getY(elementOrWindow: Element | Window): number {\n return 'scrollY' in elementOrWindow\n ? elementOrWindow.scrollY\n : elementOrWindow.scrollTop;\n}\n\n/**\n * @deprecated: use native scroll\n */\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiScrollService {\n private readonly performanceRef = inject(WA_PERFORMANCE);\n private readonly animationFrame$ = inject(WA_ANIMATION_FRAME);\n private readonly zone = inject(NgZone);\n\n public scroll$(\n elementOrWindow: Element | Window,\n scrollTop: number,\n scrollLeft: number = getX(elementOrWindow),\n duration: number = SCROLL_TIME,\n ): Observable<[number, number]> {\n ngDevMode && console.assert(duration >= 0, 'duration cannot be negative');\n ngDevMode && console.assert(scrollTop >= 0, 'scrollTop cannot be negative');\n ngDevMode && console.assert(scrollLeft >= 0, 'scrollLeft cannot be negative');\n\n const initialTop = getY(elementOrWindow);\n const initialLeft = getX(elementOrWindow);\n const deltaTop = scrollTop - initialTop;\n const deltaLeft = scrollLeft - initialLeft;\n const observable = !duration\n ? of<[number, number]>([scrollTop, scrollLeft])\n : defer(() => of(this.performanceRef.now())).pipe(\n switchMap((start) =>\n this.animationFrame$.pipe(map((now) => now - start)),\n ),\n map((elapsed) => tuiEaseInOutQuad(tuiClamp(elapsed / duration, 0, 1))),\n map<number, [number, number]>((percent) => [\n initialTop + deltaTop * percent,\n initialLeft + deltaLeft * percent,\n ]),\n takeUntil(timer(duration, tuiZonefreeScheduler(this.zone))),\n endWith<[number, number]>([scrollTop, scrollLeft]),\n );\n\n return observable.pipe(\n tap(([scrollTop, scrollLeft]) => {\n elementOrWindow.scrollTo?.(scrollLeft, scrollTop);\n }),\n );\n }\n}\n","import {DOCUMENT} from '@angular/common';\nimport {inject, Injectable, InjectionToken} from '@angular/core';\nimport {Meta} from '@angular/platform-browser';\n\nexport const TUI_THEME_COLOR = new InjectionToken<string>(\n ngDevMode ? 'TUI_THEME_COLOR' : '',\n {\n factory: () => inject(Meta).getTag('name=\"theme-color\"')?.content ?? '',\n },\n);\n\ninterface TuiThemeColor {\n get color(): string;\n set color(value: string);\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiThemeColorService implements TuiThemeColor {\n private current = inject(TUI_THEME_COLOR);\n private readonly doc = inject(DOCUMENT);\n private readonly meta = inject(Meta);\n\n constructor() {\n this.color = this.current;\n }\n\n public get color(): string {\n return this.current;\n }\n\n public set color(content: string) {\n this.current = content;\n this.meta.updateTag({name: 'theme-color', content});\n this.doc.documentElement.style.setProperty('--tui-theme-color', content);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;MAKa,YAAY,CAAA;aACN,IAAM,CAAA,MAAA,GAAG,CAAH,CAAK;IAEnB,QAAQ,GAAA;QACX,OAAO,CAAA,IAAA,EAAO,YAAY,CAAC,MAAM,EAAE,CAAG,EAAA,IAAI,CAAC,GAAG,EAAE,CAAA,CAAE;;+GAJ7C,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAZ,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFT,MAAM,EAAA,C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