@taiga-ui/cdk 4.52.0-canary.ec0802b → 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 (225) hide show
  1. package/constants/used-icons.d.ts +2 -2
  2. package/constants/version.d.ts +1 -1
  3. package/constants/version.js +1 -1
  4. package/date-time/date-fillers.d.ts +5 -5
  5. package/date-time/day-range.d.ts +1 -1
  6. package/date-time/day.d.ts +3 -3
  7. package/date-time/types.d.ts +1 -7
  8. package/directives/active-zone/active-zone.directive.d.ts +0 -2
  9. package/directives/animated/animated.directive.d.ts +1 -3
  10. package/directives/animated/index.d.ts +0 -1
  11. package/directives/index.d.ts +0 -4
  12. package/directives/transitioned/transitioned.directive.d.ts +1 -0
  13. package/fesm2022/taiga-ui-cdk-classes.mjs +4 -4
  14. package/fesm2022/taiga-ui-cdk-classes.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-cdk-constants.mjs +3 -3
  16. package/fesm2022/taiga-ui-cdk-constants.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-cdk-date-time.mjs +22 -23
  18. package/fesm2022/taiga-ui-cdk-date-time.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs +12 -16
  20. package/fesm2022/taiga-ui-cdk-directives-active-zone.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-cdk-directives-animated.mjs +23 -70
  22. package/fesm2022/taiga-ui-cdk-directives-animated.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs +5 -4
  24. package/fesm2022/taiga-ui-cdk-directives-auto-focus.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-cdk-directives-control.mjs +3 -3
  26. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs +4 -4
  27. package/fesm2022/taiga-ui-cdk-directives-copy-processor.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-cdk-directives-element.mjs +4 -4
  29. package/fesm2022/taiga-ui-cdk-directives-element.mjs.map +1 -1
  30. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs +5 -7
  31. package/fesm2022/taiga-ui-cdk-directives-focus-trap.mjs.map +1 -1
  32. package/fesm2022/taiga-ui-cdk-directives-font-size.mjs +3 -3
  33. package/fesm2022/taiga-ui-cdk-directives-high-dpi.mjs +3 -3
  34. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs +7 -7
  35. package/fesm2022/taiga-ui-cdk-directives-hovered.mjs.map +1 -1
  36. package/fesm2022/taiga-ui-cdk-directives-item.mjs +3 -3
  37. package/fesm2022/taiga-ui-cdk-directives-media.mjs +4 -4
  38. package/fesm2022/taiga-ui-cdk-directives-media.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs +5 -4
  40. package/fesm2022/taiga-ui-cdk-directives-native-validator.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs +7 -13
  42. package/fesm2022/taiga-ui-cdk-directives-obscured.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-cdk-directives-pan.mjs +6 -6
  44. package/fesm2022/taiga-ui-cdk-directives-platform.mjs +3 -3
  45. package/fesm2022/taiga-ui-cdk-directives-resizer.mjs +6 -6
  46. package/fesm2022/taiga-ui-cdk-directives-swipe.mjs +6 -6
  47. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs +8 -14
  48. package/fesm2022/taiga-ui-cdk-directives-transitioned.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-cdk-directives-validator.mjs +4 -4
  50. package/fesm2022/taiga-ui-cdk-directives-validator.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-cdk-directives-value-changes.mjs +3 -3
  52. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs +5 -4
  53. package/fesm2022/taiga-ui-cdk-directives-visual-viewport.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-cdk-directives-with-styles.mjs +3 -3
  55. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs +8 -7
  56. package/fesm2022/taiga-ui-cdk-directives-zoom.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-cdk-directives.mjs +0 -4
  58. package/fesm2022/taiga-ui-cdk-directives.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-cdk-observables.mjs +2 -24
  60. package/fesm2022/taiga-ui-cdk-observables.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-cdk-pipes-filter.mjs +3 -3
  62. package/fesm2022/taiga-ui-cdk-pipes-mapper.mjs +3 -3
  63. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs +5 -4
  64. package/fesm2022/taiga-ui-cdk-pipes-obfuscate.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-cdk-pipes.mjs +0 -6
  66. package/fesm2022/taiga-ui-cdk-pipes.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-cdk-portals.mjs +15 -16
  68. package/fesm2022/taiga-ui-cdk-portals.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-cdk-tokens.mjs +14 -47
  70. package/fesm2022/taiga-ui-cdk-tokens.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-cdk-utils-browser.mjs +2 -3
  72. package/fesm2022/taiga-ui-cdk-utils-browser.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-cdk-utils-di.mjs +45 -4
  74. package/fesm2022/taiga-ui-cdk-utils-di.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-cdk-utils-dom.mjs +1 -74
  76. package/fesm2022/taiga-ui-cdk-utils-dom.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-cdk-utils-focus.mjs +22 -38
  78. package/fesm2022/taiga-ui-cdk-utils-focus.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-cdk-utils-math.mjs +1 -12
  80. package/fesm2022/taiga-ui-cdk-utils-math.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs +45 -123
  82. package/fesm2022/taiga-ui-cdk-utils-miscellaneous.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-cdk-utils.mjs +0 -1
  84. package/fesm2022/taiga-ui-cdk-utils.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-cdk.mjs +0 -1
  86. package/fesm2022/taiga-ui-cdk.mjs.map +1 -1
  87. package/index.d.ts +0 -1
  88. package/observables/index.d.ts +0 -2
  89. package/package.json +18 -67
  90. package/pipes/index.d.ts +0 -6
  91. package/portals/portal.d.ts +0 -1
  92. package/schematics/index.d.ts +1 -0
  93. package/schematics/index.js +1 -0
  94. package/schematics/index.js.map +1 -1
  95. package/schematics/ng-add/constants/versions.d.ts +1 -1
  96. package/schematics/ng-add/steps/add-taiga-modules.js +0 -15
  97. package/schematics/ng-add/steps/add-taiga-modules.js.map +1 -1
  98. package/schematics/ng-update/v4/migrate-css-vars/palette.d.ts +4 -4
  99. package/schematics/ng-update/v4/migrate-css-vars/palette.js +4 -4
  100. package/schematics/ng-update/v4/migrate-css-vars/palette.js.map +1 -1
  101. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js +13 -13
  102. package/schematics/ng-update/v4/steps/styles/migrate-text-mixins.js.map +1 -1
  103. package/schematics/ng-update/v5/index.js +2 -0
  104. package/schematics/ng-update/v5/index.js.map +1 -1
  105. package/schematics/ng-update/v5/steps/constants/functions.js +1 -6
  106. package/schematics/ng-update/v5/steps/constants/functions.js.map +1 -1
  107. package/schematics/ng-update/v5/steps/migrate-css-variables.d.ts +3 -0
  108. package/schematics/ng-update/v5/steps/migrate-css-variables.js +30 -0
  109. package/schematics/ng-update/v5/steps/migrate-css-variables.js.map +1 -0
  110. package/schematics/ng-update/v5/steps/migrate-templates.js +4 -0
  111. package/schematics/ng-update/v5/steps/migrate-templates.js.map +1 -1
  112. package/schematics/ng-update/v5/steps/templates/migrate-avatar.d.ts +8 -0
  113. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js +111 -0
  114. package/schematics/ng-update/v5/steps/templates/migrate-avatar.js.map +1 -0
  115. package/schematics/ng-update/v5/steps/templates/migrate-notification.d.ts +8 -0
  116. package/schematics/ng-update/v5/steps/templates/migrate-notification.js +45 -0
  117. package/schematics/ng-update/v5/steps/templates/migrate-notification.js.map +1 -0
  118. package/schematics/utils/run-migration.d.ts +2 -2
  119. package/schematics/utils/run-migration.js +4 -3
  120. package/schematics/utils/run-migration.js.map +1 -1
  121. package/schematics/utils/templates/elements.d.ts +4 -1
  122. package/schematics/utils/templates/elements.js.map +1 -1
  123. package/tokens/environment.d.ts +0 -13
  124. package/tokens/index.d.ts +0 -2
  125. package/tokens/removed-element.d.ts +0 -3
  126. package/types/index.d.ts +0 -2
  127. package/utils/di/index.d.ts +3 -0
  128. package/utils/dom/index.d.ts +0 -6
  129. package/utils/focus/get-closest-focusable.d.ts +1 -6
  130. package/utils/focus/index.d.ts +4 -6
  131. package/utils/focus/{is-native-keyboard-focusable.d.ts → is-focusable.d.ts} +1 -1
  132. package/utils/index.d.ts +0 -1
  133. package/utils/math/index.d.ts +0 -2
  134. package/utils/miscellaneous/generate-id.d.ts +1 -0
  135. package/utils/miscellaneous/index.d.ts +2 -11
  136. package/utils/miscellaneous/sanitize-text.d.ts +23 -0
  137. package/directives/animated/animated-parent.directive.d.ts +0 -10
  138. package/directives/click-outside/click-outside.directive.d.ts +0 -14
  139. package/directives/click-outside/index.d.ts +0 -1
  140. package/directives/droppable/droppable.directive.d.ts +0 -10
  141. package/directives/droppable/index.d.ts +0 -1
  142. package/directives/let/index.d.ts +0 -2
  143. package/directives/let/let-context.d.ts +0 -11
  144. package/directives/let/let.directive.d.ts +0 -18
  145. package/directives/repeat-times/index.d.ts +0 -1
  146. package/directives/repeat-times/repeat-times.directive.d.ts +0 -23
  147. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs +0 -38
  148. package/fesm2022/taiga-ui-cdk-directives-click-outside.mjs.map +0 -1
  149. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs +0 -35
  150. package/fesm2022/taiga-ui-cdk-directives-droppable.mjs.map +0 -1
  151. package/fesm2022/taiga-ui-cdk-directives-let.mjs +0 -52
  152. package/fesm2022/taiga-ui-cdk-directives-let.mjs.map +0 -1
  153. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs +0 -60
  154. package/fesm2022/taiga-ui-cdk-directives-repeat-times.mjs.map +0 -1
  155. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs +0 -32
  156. package/fesm2022/taiga-ui-cdk-pipes-animation.mjs.map +0 -1
  157. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs +0 -24
  158. package/fesm2022/taiga-ui-cdk-pipes-is-present.mjs.map +0 -1
  159. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs +0 -23
  160. package/fesm2022/taiga-ui-cdk-pipes-keys.mjs.map +0 -1
  161. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs +0 -24
  162. package/fesm2022/taiga-ui-cdk-pipes-repeat-times.mjs.map +0 -1
  163. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs +0 -25
  164. package/fesm2022/taiga-ui-cdk-pipes-replace.mjs.map +0 -1
  165. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs +0 -23
  166. package/fesm2022/taiga-ui-cdk-pipes-to-array.mjs.map +0 -1
  167. package/fesm2022/taiga-ui-cdk-services.mjs +0 -111
  168. package/fesm2022/taiga-ui-cdk-services.mjs.map +0 -1
  169. package/fesm2022/taiga-ui-cdk-utils-color.mjs +0 -196
  170. package/fesm2022/taiga-ui-cdk-utils-color.mjs.map +0 -1
  171. package/observables/must-be-present.d.ts +0 -5
  172. package/observables/query-list-observable.d.ts +0 -6
  173. package/pipes/animation/animation.pipe.d.ts +0 -13
  174. package/pipes/animation/index.d.ts +0 -1
  175. package/pipes/is-present/index.d.ts +0 -1
  176. package/pipes/is-present/is-present.pipe.d.ts +0 -7
  177. package/pipes/keys/index.d.ts +0 -1
  178. package/pipes/keys/keys.pipe.d.ts +0 -7
  179. package/pipes/repeat-times/index.d.ts +0 -7
  180. package/pipes/replace/index.d.ts +0 -1
  181. package/pipes/replace/replace.pipe.d.ts +0 -7
  182. package/pipes/to-array/index.d.ts +0 -1
  183. package/pipes/to-array/to-array.pipe.d.ts +0 -7
  184. package/services/id.service.d.ts +0 -8
  185. package/services/index.d.ts +0 -3
  186. package/services/scroll.service.d.ts +0 -13
  187. package/services/theme-color.service.d.ts +0 -18
  188. package/tokens/base-href.d.ts +0 -2
  189. package/tokens/range.d.ts +0 -5
  190. package/types/safe-html.d.ts +0 -2
  191. package/types/values-of.d.ts +0 -1
  192. package/utils/color/get-gradient-data.d.ts +0 -1
  193. package/utils/color/hex-to-rgb.d.ts +0 -1
  194. package/utils/color/hex-to-rgba.d.ts +0 -3
  195. package/utils/color/hsv-to-rgb.d.ts +0 -4
  196. package/utils/color/index.d.ts +0 -9
  197. package/utils/color/parse-color.d.ts +0 -1
  198. package/utils/color/parse-gradient.d.ts +0 -10
  199. package/utils/color/rgb-to-hex.d.ts +0 -1
  200. package/utils/color/rgb-to-hsv.d.ts +0 -1
  201. package/utils/color/rgba-to-hex.d.ts +0 -2
  202. package/utils/dom/get-element-point.d.ts +0 -2
  203. package/utils/dom/is-current-target.d.ts +0 -1
  204. package/utils/dom/is-inside-iframe.d.ts +0 -4
  205. package/utils/dom/is-node-in.d.ts +0 -8
  206. package/utils/dom/retarget-boundary-crossing.d.ts +0 -1
  207. package/utils/dom/value-binding.d.ts +0 -3
  208. package/utils/focus/blur-native-focused.d.ts +0 -4
  209. package/utils/focus/is-native-mouse-focusable.d.ts +0 -1
  210. package/utils/math/to-integer.d.ts +0 -1
  211. package/utils/math/to-radians.d.ts +0 -4
  212. package/utils/miscellaneous/change-date-separator.d.ts +0 -1
  213. package/utils/miscellaneous/create-token.d.ts +0 -9
  214. package/utils/miscellaneous/flat-length.d.ts +0 -6
  215. package/utils/miscellaneous/get-original-array-from-query-list.d.ts +0 -8
  216. package/utils/miscellaneous/is-falsy.d.ts +0 -1
  217. package/utils/miscellaneous/is-valid-url.d.ts +0 -4
  218. package/utils/miscellaneous/object-shallow-equals.d.ts +0 -1
  219. package/utils/miscellaneous/uniq-by.d.ts +0 -1
  220. /package/utils/{miscellaneous → di}/directive-binding.d.ts +0 -0
  221. /package/utils/{miscellaneous → di}/provide-options.d.ts +0 -0
  222. /package/utils/{miscellaneous → di}/provide.d.ts +0 -0
  223. /package/utils/focus/{get-native-focused.d.ts → get-focused.d.ts} +0 -0
  224. /package/utils/focus/{is-native-focused-in.d.ts → is-focused-in.d.ts} +0 -0
  225. /package/utils/focus/{is-native-focused.d.ts → is-focused.d.ts} +0 -0
@@ -1,18 +0,0 @@
1
- import { TuiLetContext } from './let-context';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated use @let instead
5
- */
6
- export declare class TuiLet<T> {
7
- tuiLet: T;
8
- constructor();
9
- /**
10
- * Asserts the correct type of the context for the template that `TuiLet` will render.
11
- *
12
- * The presence of this method is a signal to the Ivy template type-check compiler that the
13
- * `TuiLet` structural directive renders its template with a specific context type.
14
- */
15
- static ngTemplateContextGuard<T>(_dir: TuiLet<T>, _ctx: unknown): _ctx is TuiLetContext<T>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiLet<any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiLet<any>, "[tuiLet]", never, { "tuiLet": { "alias": "tuiLet"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1 +0,0 @@
1
- export * from './repeat-times.directive';
@@ -1,23 +0,0 @@
1
- import { type TuiContext } from '@taiga-ui/cdk/types';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiRepeatTimesContext implements TuiContext<number> {
4
- readonly $implicit: number;
5
- constructor($implicit: number);
6
- }
7
- /**
8
- * Directive similar to ngFor but using a number of repetitions rather than an array
9
- *
10
- * {@link TuiRepeatTimes.tuiRepeatTimesOf requested number of times}.
11
- * {@link TuiRepeatTimesContext context} for every instance of the template inherits outer context and stores
12
- * {@link TuiRepeatTimesContext.$implicit index} of a template instance.
13
- */
14
- export declare class TuiRepeatTimes {
15
- private readonly vcr;
16
- private readonly template;
17
- readonly tuiRepeatTimesOf: import("@angular/core").InputSignal<number>;
18
- protected readonly setCount: import("@angular/core").EffectRef;
19
- private addContainers;
20
- private removeContainers;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiRepeatTimes, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiRepeatTimes, "[tuiRepeatTimes][tuiRepeatTimesOf]", never, { "tuiRepeatTimesOf": { "alias": "tuiRepeatTimesOf"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
23
- }
@@ -1,38 +0,0 @@
1
- import { DOCUMENT } from '@angular/common';
2
- import * as i0 from '@angular/core';
3
- import { inject, NgZone, Directive } from '@angular/core';
4
- import { outputFromObservable } from '@angular/core/rxjs-interop';
5
- import { tuiZoneOptimized } from '@taiga-ui/cdk/observables';
6
- import { tuiInjectElement, tuiGetActualTarget, tuiContainsOrAfter } from '@taiga-ui/cdk/utils';
7
- import { fromEvent, map, filter } from 'rxjs';
8
-
9
- /**
10
- * @deprecated use {@link TuiActiveZone} instead
11
- */
12
- class TuiClickOutside {
13
- constructor() {
14
- this.zone = inject(NgZone);
15
- this.doc = inject(DOCUMENT);
16
- this.el = tuiInjectElement();
17
- this.tuiClickOutside$ = fromEvent(this.doc, 'mouseup').pipe(map(tuiGetActualTarget), filter((target) => this.isOutside(target)), tuiZoneOptimized(this.zone));
18
- this.tuiClickOutside = outputFromObservable(this.tuiClickOutside$);
19
- }
20
- isOutside(target) {
21
- return target === this.el || !tuiContainsOrAfter(this.el, target);
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiClickOutside, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiClickOutside, isStandalone: true, selector: "[tuiClickOutside]", outputs: { tuiClickOutside: "tuiClickOutside" }, ngImport: i0 }); }
25
- }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiClickOutside, decorators: [{
27
- type: Directive,
28
- args: [{
29
- selector: '[tuiClickOutside]',
30
- }]
31
- }] });
32
-
33
- /**
34
- * Generated bundle index. Do not edit.
35
- */
36
-
37
- export { TuiClickOutside };
38
- //# sourceMappingURL=taiga-ui-cdk-directives-click-outside.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-click-outside.mjs","sources":["../../../projects/cdk/directives/click-outside/click-outside.directive.ts","../../../projects/cdk/directives/click-outside/taiga-ui-cdk-directives-click-outside.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Directive, inject, NgZone} from '@angular/core';\nimport {outputFromObservable} from '@angular/core/rxjs-interop';\nimport {tuiZoneOptimized} from '@taiga-ui/cdk/observables';\nimport {\n tuiContainsOrAfter,\n tuiGetActualTarget,\n tuiInjectElement,\n} from '@taiga-ui/cdk/utils';\nimport {filter, fromEvent, map, type Observable} from 'rxjs';\n\n/**\n * @deprecated use {@link TuiActiveZone} instead\n */\n@Directive({\n selector: '[tuiClickOutside]',\n})\nexport class TuiClickOutside {\n private readonly zone = inject(NgZone);\n private readonly doc = inject(DOCUMENT);\n private readonly el = tuiInjectElement();\n\n private readonly tuiClickOutside$: Observable<unknown> = fromEvent(\n this.doc,\n 'mouseup',\n ).pipe(\n map(tuiGetActualTarget),\n filter((target) => this.isOutside(target)),\n tuiZoneOptimized(this.zone),\n );\n\n public readonly tuiClickOutside = outputFromObservable(this.tuiClickOutside$);\n\n private isOutside(target: Node): boolean {\n return target === this.el || !tuiContainsOrAfter(this.el, target);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWA;;AAEG;MAIU,eAAe,CAAA;AAH5B,IAAA,WAAA,GAAA;AAIqB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC;AACrB,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;QACtB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAEvB,QAAA,IAAA,CAAA,gBAAgB,GAAwB,SAAS,CAC9D,IAAI,CAAC,GAAG,EACR,SAAS,CACZ,CAAC,IAAI,CACF,GAAG,CAAC,kBAAkB,CAAC,EACvB,MAAM,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAC1C,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC9B;AAEe,QAAA,IAAA,CAAA,eAAe,GAAG,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,CAAC;AAKhF;AAHW,IAAA,SAAS,CAAC,MAAY,EAAA;AAC1B,QAAA,OAAO,MAAM,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,CAAC;;+GAjB5D,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,OAAA,EAAA,EAAA,eAAA,EAAA,iBAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,mBAAmB;AAChC,iBAAA;;;AChBD;;AAEG;;;;"}
@@ -1,35 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { outputFromObservable } from '@angular/core/rxjs-interop';
4
- import { tuiTypedFromEvent, tuiPreventDefault } from '@taiga-ui/cdk/observables';
5
- import { tuiInjectElement } from '@taiga-ui/cdk/utils';
6
- import { tuiIsPresent } from '@taiga-ui/cdk/utils/miscellaneous';
7
- import { map, filter, switchMap, merge, startWith, distinctUntilChanged } from 'rxjs';
8
-
9
- class TuiDroppable {
10
- constructor() {
11
- this.el = tuiInjectElement();
12
- this.tuiDroppableDropped$ = tuiTypedFromEvent(this.el, 'drop').pipe(tuiPreventDefault(), map((event) => event.dataTransfer), filter(tuiIsPresent));
13
- this.tuiDroppableDragOverChange$ = tuiTypedFromEvent(this.el, 'dragenter').pipe(switchMap(({ target, dataTransfer }) => merge(tuiTypedFromEvent(this.el, 'dragleave').pipe(filter((event) => event.target === target)), tuiTypedFromEvent(this.el, 'drop')).pipe(map(() => null), startWith(dataTransfer))), distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)));
14
- this.tuiDroppableDropped = outputFromObservable(this.tuiDroppableDropped$);
15
- this.tuiDroppableDragOverChange = outputFromObservable(this.tuiDroppableDragOverChange$);
16
- }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDroppable, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
18
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiDroppable, isStandalone: true, selector: "[tuiDroppableDropped], [tuiDroppableDragOverChange]", outputs: { tuiDroppableDropped: "tuiDroppableDropped", tuiDroppableDragOverChange: "tuiDroppableDragOverChange" }, host: { listeners: { "dragover.prevent.zoneless": "0" } }, ngImport: i0 }); }
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDroppable, decorators: [{
21
- type: Directive,
22
- args: [{
23
- selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',
24
- host: {
25
- '(dragover.prevent.zoneless)': '0',
26
- },
27
- }]
28
- }] });
29
-
30
- /**
31
- * Generated bundle index. Do not edit.
32
- */
33
-
34
- export { TuiDroppable };
35
- //# sourceMappingURL=taiga-ui-cdk-directives-droppable.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-cdk-directives-droppable.mjs","sources":["../../../projects/cdk/directives/droppable/droppable.directive.ts","../../../projects/cdk/directives/droppable/taiga-ui-cdk-directives-droppable.ts"],"sourcesContent":["import {Directive} from '@angular/core';\nimport {outputFromObservable} from '@angular/core/rxjs-interop';\nimport {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils';\nimport {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {distinctUntilChanged, filter, map, merge, startWith, switchMap} from 'rxjs';\n\n@Directive({\n selector: '[tuiDroppableDropped], [tuiDroppableDragOverChange]',\n host: {\n '(dragover.prevent.zoneless)': '0',\n },\n})\nexport class TuiDroppable {\n private readonly el = tuiInjectElement();\n\n private readonly tuiDroppableDropped$ = tuiTypedFromEvent(this.el, 'drop').pipe(\n tuiPreventDefault(),\n map((event) => event.dataTransfer),\n filter(tuiIsPresent),\n );\n\n private readonly tuiDroppableDragOverChange$ = tuiTypedFromEvent(\n this.el,\n 'dragenter',\n ).pipe(\n switchMap(({target, dataTransfer}) =>\n merge(\n tuiTypedFromEvent(this.el, 'dragleave').pipe(\n filter((event) => event.target === target),\n ),\n tuiTypedFromEvent(this.el, 'drop'),\n ).pipe(\n map(() => null),\n startWith(dataTransfer),\n ),\n ),\n distinctUntilChanged((a, b) => (!!a && !!b) || (!a && !b)),\n );\n\n public readonly tuiDroppableDropped = outputFromObservable(this.tuiDroppableDropped$);\n\n public readonly tuiDroppableDragOverChange = outputFromObservable(\n this.tuiDroppableDragOverChange$,\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAaa,YAAY,CAAA;AANzB,IAAA,WAAA,GAAA;QAOqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAEvB,QAAA,IAAA,C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A,EAAA,EAAA,SAAA,EAAA,EAAA,2BAAA,EAAA,GAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBANxB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,qDAAqD;AAC/D,oBAAA,IAAI,EAAE;AACF,wBAAA,6BAA6B,EAAE,GAAG;AACrC,qBAAA;AACJ,iBAAA;;;ACZD;;AAEG;;;;"}
@@ -1,52 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, Input, Directive } from '@angular/core';
3
-
4
- /**
5
- * @internal
6
- */
7
- class TuiLetContext {
8
- constructor(internalDirectiveInstance) {
9
- this.internalDirectiveInstance = internalDirectiveInstance;
10
- }
11
- get $implicit() {
12
- return this.internalDirectiveInstance.tuiLet;
13
- }
14
- get tuiLet() {
15
- return this.internalDirectiveInstance.tuiLet;
16
- }
17
- }
18
-
19
- /**
20
- * @deprecated use @let instead
21
- */
22
- class TuiLet {
23
- constructor() {
24
- inject(ViewContainerRef).createEmbeddedView(inject((TemplateRef)), new TuiLetContext(this));
25
- }
26
- /**
27
- * Asserts the correct type of the context for the template that `TuiLet` will render.
28
- *
29
- * The presence of this method is a signal to the Ivy template type-check compiler that the
30
- * `TuiLet` structural directive renders its template with a specific context type.
31
- */
32
- static ngTemplateContextGuard(_dir, _ctx) {
33
- return true;
34
- }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
36
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiLet, isStandalone: true, selector: "[tuiLet]", inputs: { tuiLet: "tuiLet" }, ngImport: i0 }); }
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiLet, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: '[tuiLet]',
42
- }]
43
- }], ctorParameters: () => [], propDecorators: { tuiLet: [{
44
- type: Input
45
- }] } });
46
-
47
- /**
48
- * Generated bundle index. Do not edit.
49
- */
50
-
51
- export { TuiLet, TuiLetContext };
52
- //# sourceMappingURL=taiga-ui-cdk-directives-let.mjs.map
@@ -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 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;MAIU,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;kBAHlB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,UAAU;AACvB,iBAAA;wDAGU,MAAM,EAAA,CAAA;sBADZ;;;ACXL;;AAEG;;;;"}
@@ -1,60 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ViewContainerRef, TemplateRef, input, effect, 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
- this.tuiRepeatTimesOf = input.required();
23
- this.setCount = effect(() => {
24
- const count = this.tuiRepeatTimesOf();
25
- const safeCount = Math.floor(tuiClamp(count, 0, MAX_VALUE));
26
- const { length } = this.vcr;
27
- if (count < length) {
28
- this.removeContainers(length - count);
29
- }
30
- else {
31
- this.addContainers(safeCount);
32
- }
33
- });
34
- }
35
- addContainers(count) {
36
- for (let index = this.vcr.length; index < count; index++) {
37
- this.vcr.createEmbeddedView(this.template, new TuiRepeatTimesContext(index));
38
- }
39
- }
40
- removeContainers(amount) {
41
- for (let index = 0; index < amount; index++) {
42
- this.vcr.remove();
43
- }
44
- }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
46
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiRepeatTimes, isStandalone: true, selector: "[tuiRepeatTimes][tuiRepeatTimesOf]", inputs: { tuiRepeatTimesOf: { classPropertyName: "tuiRepeatTimesOf", publicName: "tuiRepeatTimesOf", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 }); }
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiRepeatTimes, decorators: [{
49
- type: Directive,
50
- args: [{
51
- selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',
52
- }]
53
- }] });
54
-
55
- /**
56
- * Generated bundle index. Do not edit.
57
- */
58
-
59
- export { TuiRepeatTimes, TuiRepeatTimesContext };
60
- //# 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 {\n Directive,\n effect,\n inject,\n input,\n TemplateRef,\n ViewContainerRef,\n} 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 selector: '[tuiRepeatTimes][tuiRepeatTimesOf]',\n})\nexport class TuiRepeatTimes {\n private readonly vcr = inject(ViewContainerRef);\n private readonly template = inject(TemplateRef<TuiRepeatTimesContext>);\n\n public readonly tuiRepeatTimesOf = input.required<number>();\n\n protected readonly setCount = effect(() => {\n const count = this.tuiRepeatTimesOf();\n\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":";;;;AAWA,MAAM,SAAS,GAAG,OAAO;MAEZ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,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;;;+GA/BhB,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,EAAA,iBAAA,EAAA,kBAAA,EAAA,UAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,oCAAoC;AACjD,iBAAA;;;AC1BD;;AAEG;;;;"}
@@ -1,32 +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
- name: 'tuiAnimation',
24
- }]
25
- }] });
26
-
27
- /**
28
- * Generated bundle index. Do not edit.
29
- */
30
-
31
- export { TuiAnimationPipe };
32
- //# 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 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":";;;;;MAQa,gBAAgB,CAAA;AAH7B,IAAA,WAAA,GAAA;AAIqB,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;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACPD;;AAEG;;;;"}
@@ -1,24 +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
- name: 'tuiIsPresent',
16
- }]
17
- }] });
18
-
19
- /**
20
- * Generated bundle index. Do not edit.
21
- */
22
-
23
- export { TuiIsPresentPipe };
24
- //# 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 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":";;;;MAMa,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;kBAH5B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,cAAc;AACvB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,23 +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
- name: 'tuiKeys',
15
- }]
16
- }] });
17
-
18
- /**
19
- * Generated bundle index. Do not edit.
20
- */
21
-
22
- export { TuiKeysPipe };
23
- //# 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 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":";;;MAKa,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;kBAHvB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,SAAS;AAClB,iBAAA;;;ACJD;;AAEG;;;;"}
@@ -1,24 +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
- name: 'tuiRepeatTimes',
16
- }]
17
- }] });
18
-
19
- /**
20
- * Generated bundle index. Do not edit.
21
- */
22
-
23
- export { TuiRepeatTimesPipe };
24
- //# 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 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":";;;;MAMa,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;kBAH9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,gBAAgB;AACzB,iBAAA;;;ACLD;;AAEG;;;;"}
@@ -1,25 +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
- name: 'tuiReplace',
17
- }]
18
- }] });
19
-
20
- /**
21
- * Generated bundle index. Do not edit.
22
- */
23
-
24
- export { TuiReplacePipe };
25
- //# 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 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":";;;MAKa,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;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,YAAY;AACrB,iBAAA;;;ACJD;;AAEG;;;;"}
@@ -1,23 +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
- name: 'tuiToArray',
15
- }]
16
- }] });
17
-
18
- /**
19
- * Generated bundle index. Do not edit.
20
- */
21
-
22
- export { TuiToArrayPipe };
23
- //# 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 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":";;;MAKa,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;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,YAAY;AACrB,iBAAA;;;ACJD;;AAEG;;;;"}
@@ -1,111 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, inject, NgZone, InjectionToken } from '@angular/core';
3
- import { WA_PERFORMANCE, WA_ANIMATION_FRAME } from '@ng-web-apis/common';
4
- import { tuiZonefreeScheduler } from '@taiga-ui/cdk/observables';
5
- import { tuiClamp } from '@taiga-ui/cdk/utils/math';
6
- import { tuiEaseInOutQuad } from '@taiga-ui/cdk/utils/miscellaneous';
7
- import { of, defer, switchMap, map, takeUntil, timer, endWith, tap } from 'rxjs';
8
- import { DOCUMENT } from '@angular/common';
9
- import { Meta } from '@angular/platform-browser';
10
-
11
- class TuiIdService {
12
- static { this.autoId = 0; }
13
- generate() {
14
- return `tui_${TuiIdService.autoId++}${Date.now()}`;
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
17
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, providedIn: 'root' }); }
18
- }
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiIdService, decorators: [{
20
- type: Injectable,
21
- args: [{
22
- providedIn: 'root',
23
- }]
24
- }] });
25
- function tuiInjectId() {
26
- return inject(TuiIdService).generate();
27
- }
28
-
29
- /// <reference types="@taiga-ui/tsconfig/ng-dev-mode" />
30
- const SCROLL_TIME = 300;
31
- function getX(elementOrWindow) {
32
- return 'scrollX' in elementOrWindow
33
- ? elementOrWindow.scrollX
34
- : elementOrWindow.scrollLeft;
35
- }
36
- function getY(elementOrWindow) {
37
- return 'scrollY' in elementOrWindow
38
- ? elementOrWindow.scrollY
39
- : elementOrWindow.scrollTop;
40
- }
41
- /**
42
- * @deprecated: use native scroll
43
- */
44
- class TuiScrollService {
45
- constructor() {
46
- this.performanceRef = inject(WA_PERFORMANCE);
47
- this.animationFrame$ = inject(WA_ANIMATION_FRAME);
48
- this.zone = inject(NgZone);
49
- }
50
- scroll$(elementOrWindow, scrollTop, scrollLeft = getX(elementOrWindow), duration = SCROLL_TIME) {
51
- ngDevMode && console.assert(duration >= 0, 'duration cannot be negative');
52
- ngDevMode && console.assert(scrollTop >= 0, 'scrollTop cannot be negative');
53
- ngDevMode && console.assert(scrollLeft >= 0, 'scrollLeft cannot be negative');
54
- const initialTop = getY(elementOrWindow);
55
- const initialLeft = getX(elementOrWindow);
56
- const deltaTop = scrollTop - initialTop;
57
- const deltaLeft = scrollLeft - initialLeft;
58
- const observable = !duration
59
- ? of([scrollTop, scrollLeft])
60
- : 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) => [
61
- initialTop + deltaTop * percent,
62
- initialLeft + deltaLeft * percent,
63
- ]), takeUntil(timer(duration, tuiZonefreeScheduler(this.zone))), endWith([scrollTop, scrollLeft]));
64
- return observable.pipe(tap(([scrollTop, scrollLeft]) => {
65
- elementOrWindow.scrollTo?.(scrollLeft, scrollTop);
66
- }));
67
- }
68
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiScrollService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
69
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiScrollService, providedIn: 'root' }); }
70
- }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiScrollService, decorators: [{
72
- type: Injectable,
73
- args: [{
74
- providedIn: 'root',
75
- }]
76
- }] });
77
-
78
- const TUI_THEME_COLOR = new InjectionToken(ngDevMode ? 'TUI_THEME_COLOR' : '', {
79
- factory: () => inject(Meta).getTag('name="theme-color"')?.content ?? '',
80
- });
81
- class TuiThemeColorService {
82
- constructor() {
83
- this.current = inject(TUI_THEME_COLOR);
84
- this.doc = inject(DOCUMENT);
85
- this.meta = inject(Meta);
86
- this.color = this.current;
87
- }
88
- get color() {
89
- return this.current;
90
- }
91
- set color(content) {
92
- this.current = content;
93
- this.meta.updateTag({ name: 'theme-color', content });
94
- this.doc.documentElement.style.setProperty('--tui-theme-color', content);
95
- }
96
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
97
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, providedIn: 'root' }); }
98
- }
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiThemeColorService, decorators: [{
100
- type: Injectable,
101
- args: [{
102
- providedIn: 'root',
103
- }]
104
- }], ctorParameters: () => [] });
105
-
106
- /**
107
- * Generated bundle index. Do not edit.
108
- */
109
-
110
- export { TUI_THEME_COLOR, TuiIdService, TuiScrollService, TuiThemeColorService, tuiInjectId };
111
- //# 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/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","/// <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,CAAA,CAAA;;4FAET,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,UAAU,EAAE,MAAM;AACrB,iBAAA;;SASe,WAAW,GAAA;AACvB,IAAA,OAAO,MAAM,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;AAC1C;;ACfA;AAkBA,MAAM,WAAW,GAAG,GAAG;AAEvB,SAAS,IAAI,CAAC,eAAiC,EAAA;IAC3C,OAAO,SAAS,IAAI;UACd,eAAe,CAAC;AAClB,UAAE,eAAe,CAAC,UAAU;AACpC;AAEA,SAAS,IAAI,CAAC,eAAiC,EAAA;IAC3C,OAAO,SAAS,IAAI;UACd,eAAe,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