@taiga-ui/core 4.52.0-canary.6be767f → 4.52.0-canary.6ee9658

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 (172) hide show
  1. package/README.md +1 -1
  2. package/classes/accessors.d.ts +1 -1
  3. package/components/calendar/calendar-sheet.options.d.ts +1 -3
  4. package/components/data-list/data-list.component.d.ts +7 -9
  5. package/components/data-list/opt-group.directive.d.ts +2 -2
  6. package/components/data-list/option/option.directive.d.ts +5 -6
  7. package/components/dialog/dialog.component.d.ts +3 -4
  8. package/components/dialog/dialog.directive.d.ts +4 -3
  9. package/components/dialog/dialog.options.d.ts +2 -3
  10. package/components/dialog/dialog.providers.d.ts +1 -2
  11. package/components/dialog/dialog.service.d.ts +5 -2
  12. package/components/dialog/index.d.ts +0 -1
  13. package/components/error/error.component.d.ts +1 -1
  14. package/components/index.d.ts +1 -2
  15. package/components/link/link.directive.d.ts +2 -2
  16. package/components/link/link.options.d.ts +1 -3
  17. package/components/loader/loader.component.d.ts +7 -7
  18. package/components/loader/loader.options.d.ts +1 -3
  19. package/components/modal/index.d.ts +2 -0
  20. package/components/modal/modal.component.d.ts +17 -0
  21. package/components/modal/modal.service.d.ts +13 -0
  22. package/components/notification/index.d.ts +3 -0
  23. package/components/notification/notification.component.d.ts +14 -0
  24. package/components/notification/notification.d.ts +3 -0
  25. package/components/notification/notification.directive.d.ts +7 -12
  26. package/components/notification/notification.options.d.ts +10 -7
  27. package/components/notification/notification.service.d.ts +17 -0
  28. package/components/root/root.component.d.ts +2 -2
  29. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  30. package/components/scrollbar/scrollbar.component.d.ts +2 -2
  31. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  32. package/components/spin-button/spin-button.component.d.ts +8 -9
  33. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  34. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +9 -13
  35. package/components/textfield/textfield.component.d.ts +20 -32
  36. package/components/textfield/textfield.directive.d.ts +13 -20
  37. package/components/textfield/textfield.options.d.ts +8 -11
  38. package/directives/alert/alert.directive.d.ts +11 -0
  39. package/directives/alert/alert.service.d.ts +12 -0
  40. package/directives/alert/index.d.ts +2 -0
  41. package/directives/appearance/appearance.directive.d.ts +1 -1
  42. package/directives/appearance/appearance.options.d.ts +1 -1
  43. package/directives/date-format/date-format.directive.d.ts +3 -7
  44. package/directives/dropdown/dropdown-hover.options.d.ts +1 -3
  45. package/directives/dropdown/dropdown-position.directive.d.ts +1 -1
  46. package/directives/dropdown/dropdown.directive.d.ts +1 -2
  47. package/directives/dropdown/index.d.ts +0 -2
  48. package/directives/group/group.options.d.ts +1 -3
  49. package/directives/hint/hint-describe.directive.d.ts +4 -6
  50. package/directives/hint/hint-host.directive.d.ts +2 -2
  51. package/directives/hint/hint-hover.directive.d.ts +3 -4
  52. package/directives/hint/hint-manual.directive.d.ts +2 -2
  53. package/directives/hint/hint-options.directive.d.ts +1 -1
  54. package/directives/hint/hint-overflow.directive.d.ts +2 -2
  55. package/directives/hint/hint-position.directive.d.ts +4 -5
  56. package/directives/hint/hint-unstyled.component.d.ts +2 -7
  57. package/directives/hint/hint.component.d.ts +7 -6
  58. package/directives/hint/hint.directive.d.ts +9 -11
  59. package/directives/hint/index.d.ts +0 -2
  60. package/directives/index.d.ts +1 -0
  61. package/directives/number-format/number-format.directive.d.ts +3 -7
  62. package/fesm2022/taiga-ui-core-classes.mjs +2 -2
  63. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-core-components-calendar.mjs +11 -16
  66. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-core-components-data-list.mjs +41 -74
  69. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-core-components-dialog.mjs +34 -91
  71. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-core-components-error.mjs +4 -3
  73. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-core-components-icon.mjs +1 -2
  76. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-core-components-link.mjs +10 -16
  79. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-components-loader.mjs +14 -32
  81. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-components-modal.mjs +89 -0
  83. package/fesm2022/taiga-ui-core-components-modal.mjs.map +1 -0
  84. package/fesm2022/taiga-ui-core-components-notification.mjs +98 -41
  85. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-core-components-root.mjs +5 -17
  87. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +36 -45
  89. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-core-components-spin-button.mjs +14 -27
  91. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-components-textfield.mjs +120 -241
  93. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-components.mjs +1 -2
  95. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-directives-alert.mjs +73 -0
  97. package/fesm2022/taiga-ui-core-directives-alert.mjs.map +1 -0
  98. package/fesm2022/taiga-ui-core-directives-appearance.mjs +6 -6
  99. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-directives-date-format.mjs +24 -18
  101. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +21 -78
  103. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-directives-group.mjs +4 -8
  105. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-directives-hint.mjs +99 -189
  107. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-directives-icons.mjs +2 -2
  109. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +3 -6
  111. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-core-directives-number-format.mjs +30 -18
  113. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-core-directives-popup.mjs +4 -4
  115. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-core-directives-title.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-directives.mjs +1 -0
  118. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -1
  120. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +1 -1
  121. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -1
  122. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -1
  124. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
  125. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -1
  126. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -12
  128. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  129. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -1
  130. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +1 -1
  131. package/fesm2022/taiga-ui-core-pipes-month.mjs +2 -2
  132. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
  133. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -1
  134. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-core-tokens.mjs +20 -15
  136. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  137. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -0
  138. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  139. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +1 -1
  140. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  141. package/package.json +17 -14
  142. package/pipes/format-number/format-number.pipe.d.ts +5 -3
  143. package/styles/components/link.less +1 -0
  144. package/styles/mixins/appearance.less +1 -1
  145. package/styles/mixins/mixins.less +0 -5
  146. package/styles/mixins/mixins.scss +0 -5
  147. package/styles/theme/variables.less +2 -4
  148. package/tokens/common-icons.d.ts +1 -3
  149. package/tokens/date-format.d.ts +2 -3
  150. package/tokens/i18n.d.ts +7 -7
  151. package/tokens/number-format.d.ts +2 -3
  152. package/types/index.d.ts +0 -1
  153. package/components/alert/alert.component.d.ts +0 -15
  154. package/components/alert/alert.directive.d.ts +0 -7
  155. package/components/alert/alert.interfaces.d.ts +0 -12
  156. package/components/alert/alert.service.d.ts +0 -7
  157. package/components/alert/alert.tokens.d.ts +0 -12
  158. package/components/alert/alerts.component.d.ts +0 -12
  159. package/components/alert/index.d.ts +0 -6
  160. package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
  161. package/components/dialog/dialogs.component.d.ts +0 -8
  162. package/components/header/header.directive.d.ts +0 -17
  163. package/components/header/index.d.ts +0 -1
  164. package/directives/dropdown/dropdown.service.d.ts +0 -6
  165. package/directives/dropdown/dropdowns.component.d.ts +0 -9
  166. package/directives/hint/hint.service.d.ts +0 -13
  167. package/directives/hint/hints.component.d.ts +0 -12
  168. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -149
  169. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  170. package/fesm2022/taiga-ui-core-components-header.mjs +0 -42
  171. package/fesm2022/taiga-ui-core-components-header.mjs.map +0 -1
  172. package/types/portal-item.d.ts +0 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/core",
3
- "version": "4.52.0-canary.6be767f",
3
+ "version": "4.52.0-canary.6ee9658",
4
4
  "description": "Core library for creating Angular components and applications using Taiga UI",
5
5
  "keywords": [
6
6
  "angular",
@@ -12,7 +12,10 @@
12
12
  "directive"
13
13
  ],
14
14
  "homepage": "https://github.com/taiga-family/taiga-ui",
15
- "repository": "https://github.com/taiga-family/taiga-ui",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/taiga-family/taiga-ui"
18
+ },
16
19
  "license": "Apache-2.0",
17
20
  "exports": {
18
21
  "./styles/*": "./styles/*",
@@ -59,10 +62,6 @@
59
62
  "types": "./utils/index.d.ts",
60
63
  "default": "./fesm2022/taiga-ui-core-utils.mjs"
61
64
  },
62
- "./components/alert": {
63
- "types": "./components/alert/index.d.ts",
64
- "default": "./fesm2022/taiga-ui-core-components-alert.mjs"
65
- },
66
65
  "./components/button": {
67
66
  "types": "./components/button/index.d.ts",
68
67
  "default": "./fesm2022/taiga-ui-core-components-button.mjs"
@@ -91,10 +90,6 @@
91
90
  "types": "./components/expand/index.d.ts",
92
91
  "default": "./fesm2022/taiga-ui-core-components-expand.mjs"
93
92
  },
94
- "./components/header": {
95
- "types": "./components/header/index.d.ts",
96
- "default": "./fesm2022/taiga-ui-core-components-header.mjs"
97
- },
98
93
  "./components/icon": {
99
94
  "types": "./components/icon/index.d.ts",
100
95
  "default": "./fesm2022/taiga-ui-core-components-icon.mjs"
@@ -111,18 +106,22 @@
111
106
  "types": "./components/loader/index.d.ts",
112
107
  "default": "./fesm2022/taiga-ui-core-components-loader.mjs"
113
108
  },
109
+ "./components/modal": {
110
+ "types": "./components/modal/index.d.ts",
111
+ "default": "./fesm2022/taiga-ui-core-components-modal.mjs"
112
+ },
114
113
  "./components/notification": {
115
114
  "types": "./components/notification/index.d.ts",
116
115
  "default": "./fesm2022/taiga-ui-core-components-notification.mjs"
117
116
  },
118
- "./components/root": {
119
- "types": "./components/root/index.d.ts",
120
- "default": "./fesm2022/taiga-ui-core-components-root.mjs"
121
- },
122
117
  "./components/scrollbar": {
123
118
  "types": "./components/scrollbar/index.d.ts",
124
119
  "default": "./fesm2022/taiga-ui-core-components-scrollbar.mjs"
125
120
  },
121
+ "./components/root": {
122
+ "types": "./components/root/index.d.ts",
123
+ "default": "./fesm2022/taiga-ui-core-components-root.mjs"
124
+ },
126
125
  "./components/spin-button": {
127
126
  "types": "./components/spin-button/index.d.ts",
128
127
  "default": "./fesm2022/taiga-ui-core-components-spin-button.mjs"
@@ -131,6 +130,10 @@
131
130
  "types": "./components/textfield/index.d.ts",
132
131
  "default": "./fesm2022/taiga-ui-core-components-textfield.mjs"
133
132
  },
133
+ "./directives/alert": {
134
+ "types": "./directives/alert/index.d.ts",
135
+ "default": "./fesm2022/taiga-ui-core-directives-alert.mjs"
136
+ },
134
137
  "./directives/appearance": {
135
138
  "types": "./directives/appearance/index.d.ts",
136
139
  "default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
@@ -1,16 +1,18 @@
1
1
  import { type PipeTransform } from '@angular/core';
2
2
  import { type TuiNumberFormatSettings } from '@taiga-ui/core/tokens';
3
- import { type Observable } from 'rxjs';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class TuiFormatNumberPipe implements PipeTransform {
6
- private readonly numberFormat;
5
+ private readonly format;
6
+ private readonly value;
7
+ private readonly settings;
8
+ private readonly formatted;
7
9
  /**
8
10
  * Formats number adding thousand separators and correct decimal separator
9
11
  * padding decimal part with zeroes to given length
10
12
  * @param value number
11
13
  * @param settings See {@link TuiNumberFormatSettings}
12
14
  */
13
- transform(value: number, settings?: Partial<TuiNumberFormatSettings>): Observable<string>;
15
+ transform(value: number, settings?: Partial<TuiNumberFormatSettings>): string;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiFormatNumberPipe, never>;
15
17
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiFormatNumberPipe, "tuiFormatNumber", true>;
16
18
  }
@@ -51,6 +51,7 @@
51
51
  line-height: 0;
52
52
  box-sizing: border-box;
53
53
  mask-size: calc(100% + 10 * var(--tui-stroke-width, 0.125rem)) 100%;
54
+ transition: none;
54
55
  }
55
56
 
56
57
  &[tuiChevron]::after {
@@ -24,7 +24,7 @@
24
24
 
25
25
  .appearance-active(@content) {
26
26
  .interactive({
27
- &:active:not(:disabled):not([data-state]) {
27
+ &:active:not([data-state]) {
28
28
  @content();
29
29
  }
30
30
  });
@@ -1,11 +1,6 @@
1
1
  @import 'browsers.less';
2
2
 
3
3
  .interactive(@ruleset) {
4
- // TODO remove after dropping Safari 13 support
5
- &:matches(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
6
- @ruleset();
7
- }
8
-
9
4
  &:is(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
10
5
  @ruleset();
11
6
  }
@@ -1,11 +1,6 @@
1
1
  @import 'browsers.scss';
2
2
 
3
3
  @mixin interactive {
4
- // TODO remove after dropping Safari 13 support
5
- &:matches(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
6
- @content;
7
- }
8
-
9
4
  &:is(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
10
5
  @content;
11
6
  }
@@ -1,10 +1,8 @@
1
- @font-fallback: -apple-system, 'BlinkMacSystemFont', system-ui, 'Roboto', 'Segoe UI', 'Helvetica Neue', sans-serif;
2
-
3
1
  &:root,
4
2
  &:host {
5
3
  // Fonts
6
- --tui-font-heading: 'Manrope', @font-fallback;
7
- --tui-font-text: 'Manrope', @font-fallback;
4
+ --tui-font-heading: 'Manrope', system-ui, sans-serif;
5
+ --tui-font-text: 'Manrope', system-ui, sans-serif;
8
6
  --tui-font-offset: ~'0rem';
9
7
  // Heading
10
8
  --tui-font-heading-1: bold calc(var(--tui-font-offset) + 3.125rem) / 3.5rem var(--tui-font-heading);
@@ -1,4 +1,3 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
2
1
  export interface TuiCommonIcons {
3
2
  readonly check: string;
4
3
  readonly close: string;
@@ -7,5 +6,4 @@ export interface TuiCommonIcons {
7
6
  readonly search: string;
8
7
  readonly ellipsis: string;
9
8
  }
10
- export declare const TUI_COMMON_ICONS: InjectionToken<TuiCommonIcons>;
11
- export declare function tuiCommonIconsProvider(icons: Partial<TuiCommonIcons>): Provider;
9
+ export declare const TUI_COMMON_ICONS: import("@angular/core").InjectionToken<TuiCommonIcons>, tuiCommonIconsProvider: (item: Partial<TuiCommonIcons> | (() => Partial<TuiCommonIcons>)) => import("@angular/core").FactoryProvider;
@@ -1,6 +1,5 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
1
+ import { InjectionToken, type Provider, type Signal } from '@angular/core';
2
2
  import { type TuiDateMode } from '@taiga-ui/cdk/date-time';
3
- import { type Observable } from 'rxjs';
4
3
  /**
5
4
  * Formatting configuration for displayed dates
6
5
  */
@@ -19,5 +18,5 @@ export declare const TUI_DEFAULT_DATE_FORMAT: TuiDateFormatSettings;
19
18
  /**
20
19
  * Formatting configuration for displayed dates
21
20
  */
22
- export declare const TUI_DATE_FORMAT: InjectionToken<Observable<TuiDateFormatSettings>>;
21
+ export declare const TUI_DATE_FORMAT: InjectionToken<Signal<TuiDateFormatSettings>>;
23
22
  export declare function tuiDateFormatProvider(options: Partial<TuiDateFormatSettings>): Provider;
package/tokens/i18n.d.ts CHANGED
@@ -2,28 +2,28 @@ import { InjectionToken } from '@angular/core';
2
2
  /**
3
3
  * Localized months names
4
4
  */
5
- export declare const TUI_MONTHS: InjectionToken<import("rxjs").Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
5
+ export declare const TUI_MONTHS: InjectionToken<import("@angular/core").Signal<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
6
6
  /**
7
7
  * i18n 'close' word
8
8
  */
9
- export declare const TUI_CLOSE_WORD: InjectionToken<import("rxjs").Observable<string>>;
9
+ export declare const TUI_CLOSE_WORD: InjectionToken<import("@angular/core").Signal<string>>;
10
10
  /**
11
11
  * i18n 'clear' word
12
12
  */
13
- export declare const TUI_CLEAR_WORD: InjectionToken<import("rxjs").Observable<string>>;
13
+ export declare const TUI_CLEAR_WORD: InjectionToken<import("@angular/core").Signal<string>>;
14
14
  /**
15
15
  * i18n 'Nothing found' message
16
16
  */
17
- export declare const TUI_NOTHING_FOUND_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
17
+ export declare const TUI_NOTHING_FOUND_MESSAGE: InjectionToken<import("@angular/core").Signal<string>>;
18
18
  /**
19
19
  * i18n of error message
20
20
  */
21
- export declare const TUI_DEFAULT_ERROR_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
21
+ export declare const TUI_DEFAULT_ERROR_MESSAGE: InjectionToken<import("@angular/core").Signal<string>>;
22
22
  /**
23
23
  * spin i18n texts
24
24
  */
25
- export declare const TUI_SPIN_TEXTS: InjectionToken<import("rxjs").Observable<readonly [previous: string, next: string]>>;
25
+ export declare const TUI_SPIN_TEXTS: InjectionToken<import("@angular/core").Signal<readonly [previous: string, next: string]>>;
26
26
  /**
27
27
  * calendars i18n texts
28
28
  */
29
- export declare const TUI_SHORT_WEEK_DAYS: InjectionToken<import("rxjs").Observable<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
29
+ export declare const TUI_SHORT_WEEK_DAYS: InjectionToken<import("@angular/core").Signal<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
@@ -1,6 +1,5 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
1
+ import { InjectionToken, type Provider, type Signal } from '@angular/core';
2
2
  import { type TuiRounding } from '@taiga-ui/cdk/types';
3
- import { type Observable } from 'rxjs';
4
3
  export type TuiDecimalMode = 'always' | 'not-zero' | 'pad';
5
4
  export type TuiDecimalSymbol = ',' | '.';
6
5
  /**
@@ -35,5 +34,5 @@ export declare const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings;
35
34
  /**
36
35
  * Formatting configuration for displayed numbers
37
36
  */
38
- export declare const TUI_NUMBER_FORMAT: InjectionToken<Observable<TuiNumberFormatSettings>>;
37
+ export declare const TUI_NUMBER_FORMAT: InjectionToken<Signal<TuiNumberFormatSettings>>;
39
38
  export declare function tuiNumberFormatProvider(options: Partial<TuiNumberFormatSettings>): Provider;
package/types/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export type * from './direction';
2
2
  export type * from './interactive-state';
3
3
  export type * from './orientation';
4
4
  export type * from './point';
5
- export type * from './portal-item';
6
5
  export type * from './range-state';
7
6
  export type * from './size';
8
7
  export type * from './value-content-context';
@@ -1,15 +0,0 @@
1
- import { type TuiPopover } from '@taiga-ui/cdk/services';
2
- import { type TuiAlertOptions } from './alert.interfaces';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@taiga-ui/cdk/directives/animated";
5
- export declare class TuiAlertComponent<O, I> {
6
- private readonly el;
7
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
8
- protected readonly close: import("@angular/core").Signal<string | undefined>;
9
- protected readonly position: string;
10
- protected readonly item: TuiPopover<TuiAlertOptions<I>, O>;
11
- protected readonly sub: import("rxjs").Subscription;
12
- get from(): string;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlertComponent<any, any>, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiAlertComponent<any, any>, "tui-alert", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }]>;
15
- }
@@ -1,7 +0,0 @@
1
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
2
- import { type TuiAlertOptions } from './alert.interfaces';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiAlert<T> extends TuiPopoverDirective<TuiAlertOptions<T>> {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlert<any>, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAlert<any>, "ng-template[tuiAlert]", never, { "options": { "alias": "tuiAlertOptions"; "required": false; }; "open": { "alias": "tuiAlert"; "required": false; }; }, { "openChange": "tuiAlertChange"; }, never, never, true, never>;
7
- }
@@ -1,12 +0,0 @@
1
- import { type TuiPopoverContext } from '@taiga-ui/cdk/services';
2
- import { type TuiHandler } from '@taiga-ui/cdk/types';
3
- import { type TuiNotificationOptions } from '@taiga-ui/core/components/notification';
4
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
5
- export interface TuiAlertOptions<I = undefined> extends Omit<TuiNotificationOptions, 'size'> {
6
- readonly autoClose: TuiHandler<string, number> | number;
7
- readonly data: I;
8
- readonly closable: boolean;
9
- readonly label: PolymorpheusContent<TuiAlertOptions<I>>;
10
- }
11
- export interface TuiAlertContext<O = void, I = undefined> extends TuiPopoverContext<O>, TuiAlertOptions<I> {
12
- }
@@ -1,7 +0,0 @@
1
- import { TuiPopoverService } from '@taiga-ui/cdk/services';
2
- import { type TuiAlertOptions } from './alert.interfaces';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiAlertService extends TuiPopoverService<TuiAlertOptions<any>> {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlertService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiAlertService>;
7
- }
@@ -1,12 +0,0 @@
1
- import { type FactoryProvider, InjectionToken } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { type TuiAlertOptions } from './alert.interfaces';
4
- export declare const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'>;
5
- export declare const TUI_ALERT_OPTIONS: InjectionToken<TuiAlertOptions<undefined>>;
6
- export declare const TUI_ALERT_POSITION: InjectionToken<string>;
7
- export declare const TUI_ALERTS: InjectionToken<BehaviorSubject<readonly any[]>>;
8
- /**
9
- * Grouping alerts by their component
10
- */
11
- export declare const TUI_ALERTS_GROUPED: InjectionToken<import("rxjs").Observable<(readonly any[])[]>>;
12
- export declare function tuiAlertOptionsProvider(options: Partial<TuiAlertOptions>): FactoryProvider;
@@ -1,12 +0,0 @@
1
- import { Injector, type Type } from '@angular/core';
2
- import { type TuiMapper } from '@taiga-ui/cdk/types';
3
- import { identity } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiAlerts {
6
- private readonly injector;
7
- protected readonly alerts$: import("rxjs").Observable<(readonly any[])[]>;
8
- protected readonly trackBy: typeof identity;
9
- protected readonly mapper: TuiMapper<[Type<any>], Injector>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlerts, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiAlerts, "tui-alerts", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,6 +0,0 @@
1
- export * from './alert.component';
2
- export * from './alert.directive';
3
- export type * from './alert.interfaces';
4
- export * from './alert.service';
5
- export * from './alert.tokens';
6
- export * from './alerts.component';
@@ -1,11 +0,0 @@
1
- import { type OnDestroy, type OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@taiga-ui/cdk/directives/active-zone";
4
- export declare class TuiActiveZoneAdapter implements OnDestroy, OnInit {
5
- private readonly current;
6
- private readonly parent;
7
- ngOnInit(): void;
8
- ngOnDestroy(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiActiveZoneAdapter, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiActiveZoneAdapter, "[tuiActiveZoneAdapter]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }]>;
11
- }
@@ -1,8 +0,0 @@
1
- import { type Signal } from '@angular/core';
2
- import { type TuiPopover } from '@taiga-ui/cdk/services';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiDialogs {
5
- protected readonly dialogs: Signal<ReadonlyArray<TuiPopover<any, any>>>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDialogs, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDialogs, "tui-dialogs", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare const TUI_HEADER_OPTIONS: import("@angular/core").InjectionToken<{
3
- size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
4
- }>, tuiHeaderOptionsProvider: (item: Partial<{
5
- size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
6
- }> | (() => Partial<{
7
- size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
8
- }>)) => import("@angular/core").FactoryProvider;
9
- export declare class TuiHeader {
10
- protected readonly nothing: undefined;
11
- protected readonly options: {
12
- size: "" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
13
- };
14
- readonly tuiHeader: import("@angular/core").InputSignal<"" | "body-l" | "body-m" | "body-xl" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiHeader, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHeader, "[tuiHeader]", never, { "tuiHeader": { "alias": "tuiHeader"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
17
- }
@@ -1 +0,0 @@
1
- export * from './header.directive';
@@ -1,6 +0,0 @@
1
- import { TuiPortalService } from '@taiga-ui/cdk/portals';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiDropdownService extends TuiPortalService {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownService, never>;
5
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiDropdownService>;
6
- }
@@ -1,9 +0,0 @@
1
- import { TuiPortals } from '@taiga-ui/cdk/portals';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Host element for dynamically created portals, for example using {@link TuiDropdownDirective}.
5
- */
6
- export declare class TuiDropdowns extends TuiPortals {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdowns, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDropdowns, "tui-dropdowns", never, {}, {}, never, never, true, never>;
9
- }
@@ -1,13 +0,0 @@
1
- import { type TuiPortalItem } from '@taiga-ui/core/types';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service for displaying hints/tooltips
6
- */
7
- export declare class TuiHintService extends BehaviorSubject<readonly TuiPortalItem[]> {
8
- constructor();
9
- add(directive: TuiPortalItem): void;
10
- remove(directive: TuiPortalItem): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiHintService>;
13
- }
@@ -1,12 +0,0 @@
1
- import { type OnInit } from '@angular/core';
2
- import { type TuiPortalItem } from '@taiga-ui/core/types';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiHints implements OnInit {
5
- private readonly hints$;
6
- private readonly destroyRef;
7
- private readonly cdr;
8
- protected hints: readonly TuiPortalItem[];
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiHints, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiHints, "tui-hints", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,149 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, ChangeDetectionStrategy, Component, Injectable, Directive, INJECTOR, Injector, ViewEncapsulation } from '@angular/core';
3
- import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import * as i1 from '@taiga-ui/cdk/directives/animated';
5
- import { TuiAnimated, TuiAnimatedParent } from '@taiga-ui/cdk/directives/animated';
6
- import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
7
- import { TuiButton } from '@taiga-ui/core/components/button';
8
- import { TUI_NOTIFICATION_OPTIONS, TuiNotification } from '@taiga-ui/core/components/notification';
9
- import { TuiTitle } from '@taiga-ui/core/directives/title';
10
- import { TUI_COMMON_ICONS, TUI_CLOSE_WORD } from '@taiga-ui/core/tokens';
11
- import { injectContext, PolymorpheusOutlet, POLYMORPHEUS_CONTEXT } from '@taiga-ui/polymorpheus';
12
- import { BehaviorSubject, combineLatest, of, map, switchMap, timer, EMPTY, takeUntil, fromEvent, repeat, identity } from 'rxjs';
13
- import { TUI_IS_MOBILE } from '@taiga-ui/cdk/tokens';
14
- import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
15
- import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
16
- import { AsyncPipe, NgComponentOutlet } from '@angular/common';
17
- import { TuiMapperPipe } from '@taiga-ui/cdk/pipes/mapper';
18
-
19
- const TUI_ALERT_DEFAULT_OPTIONS = {
20
- autoClose: 3000,
21
- label: '',
22
- closable: true,
23
- data: undefined,
24
- };
25
- const TUI_ALERT_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_ALERT_OPTIONS' : '', {
26
- factory: () => ({
27
- ...TUI_ALERT_DEFAULT_OPTIONS,
28
- ...inject(TUI_NOTIFICATION_OPTIONS),
29
- }),
30
- });
31
- const TUI_ALERT_POSITION = new InjectionToken(ngDevMode ? 'TUI_ALERT_POSITION' : '', {
32
- factory: () => (inject(TUI_IS_MOBILE) ? '1rem 1rem 0 auto' : '2rem 3rem 0 auto'),
33
- });
34
- const TUI_ALERTS = new InjectionToken(ngDevMode ? 'TUI_ALERTS' : '', {
35
- factory: () => new BehaviorSubject([]),
36
- });
37
- /**
38
- * Grouping alerts by their component
39
- */
40
- const TUI_ALERTS_GROUPED = new InjectionToken(ngDevMode ? 'TUI_ALERTS_GROUPED' : '', {
41
- factory: () => combineLatest([
42
- of(new Map()),
43
- inject(TUI_ALERTS),
44
- ]).pipe(map(([map, alerts]) => {
45
- map.forEach((_, key) => map.set(key, []));
46
- alerts.forEach((alert) => {
47
- const key = alert.component.component;
48
- const value = map.get(key) || [];
49
- map.set(key, [...value, alert]);
50
- });
51
- return Array.from(map.values());
52
- })),
53
- });
54
- function tuiAlertOptionsProvider(options) {
55
- return {
56
- provide: TUI_ALERT_OPTIONS,
57
- useFactory: () => ({
58
- ...TUI_ALERT_DEFAULT_OPTIONS,
59
- ...(inject(TUI_ALERT_OPTIONS, { optional: true, skipSelf: true }) ||
60
- inject(TUI_NOTIFICATION_OPTIONS)),
61
- ...options,
62
- }),
63
- };
64
- }
65
-
66
- class TuiAlertComponent {
67
- constructor() {
68
- this.el = tuiInjectElement();
69
- this.icons = inject(TUI_COMMON_ICONS);
70
- this.close = toSignal(inject(TUI_CLOSE_WORD));
71
- this.position = inject(TUI_ALERT_POSITION);
72
- this.item = injectContext();
73
- this.sub = of(typeof this.item.autoClose === 'function'
74
- ? this.item.autoClose(this.item.appearance)
75
- : this.item.autoClose)
76
- .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
77
- .subscribe(() => this.item.$implicit.complete());
78
- }
79
- get from() {
80
- return this.position.endsWith('auto') ? 'translateX(100%)' : 'translateX(-100%)';
81
- }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
83
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiAlertComponent, isStandalone: true, selector: "tui-alert", host: { attributes: { "role": "alert" }, properties: { "style.margin": "position", "style.--tui-from": "from" } }, hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closable]=\"item.closable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n @if (item.closable) {\n <button\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n }\n </tui-notification>\n</div>\n", styles: [":host{display:grid;inline-size:18rem;flex-shrink:0;word-break:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host:not(:first-of-type){margin-block-start:0!important}:host:not(:last-of-type){margin-block-end:0!important}.t-wrapper{transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;grid-row:1 / span 2;overflow:hidden;margin-block-end:.75rem;background:var(--tui-background-base);border-radius:var(--tui-radius-m);box-shadow:var(--tui-shadow-medium)}:host.tui-leave .t-wrapper{margin:0}.t-closable{padding-inline-end:2.5rem}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }, { kind: "directive", type: TuiNotification, selector: "tui-notification,a[tuiNotification],button[tuiNotification]", inputs: ["appearance", "icon", "size"] }, { kind: "directive", type: TuiTitle, selector: "[tuiTitle]", inputs: ["tuiTitle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
84
- }
85
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertComponent, decorators: [{
86
- type: Component,
87
- args: [{ selector: 'tui-alert', imports: [PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated], host: {
88
- role: 'alert',
89
- '[style.margin]': 'position',
90
- '[style.--tui-from]': 'from',
91
- }, template: "<div class=\"t-wrapper\">\n <tui-notification\n size=\"m\"\n [appearance]=\"item.appearance\"\n [class.t-closable]=\"item.closable\"\n [icon]=\"item.icon\"\n >\n <span tuiTitle>\n <ng-container *polymorpheusOutlet=\"item.label as text; context: item\">\n {{ text }}\n </ng-container>\n <span tuiSubtitle>\n <span\n *polymorpheusOutlet=\"item.content as text; context: item\"\n [innerHTML]=\"text\"\n ></span>\n </span>\n </span>\n @if (item.closable) {\n <button\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click)=\"item.$implicit.complete()\"\n >\n {{ close() }}\n </button>\n }\n </tui-notification>\n</div>\n", styles: [":host{display:grid;inline-size:18rem;flex-shrink:0;word-break:break-word}:host.tui-enter,:host.tui-leave{animation-name:tuiFade,tuiSlide,tuiCollapse}:host:not(:first-of-type){margin-block-start:0!important}:host:not(:last-of-type){margin-block-end:0!important}.t-wrapper{transition-property:margin;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;grid-row:1 / span 2;overflow:hidden;margin-block-end:.75rem;background:var(--tui-background-base);border-radius:var(--tui-radius-m);box-shadow:var(--tui-shadow-medium)}:host.tui-leave .t-wrapper{margin:0}.t-closable{padding-inline-end:2.5rem}\n"] }]
92
- }] });
93
-
94
- class TuiAlertService extends TuiPopoverService {
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
96
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, providedIn: 'root', useFactory: () => new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)) }); }
97
- }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, decorators: [{
99
- type: Injectable,
100
- args: [{
101
- providedIn: 'root',
102
- useFactory: () => new TuiAlertService(TUI_ALERTS, TuiAlertComponent, inject(TUI_ALERT_OPTIONS)),
103
- }]
104
- }] });
105
-
106
- class TuiAlert extends TuiPopoverDirective {
107
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlert, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
108
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: TuiAlert, isStandalone: true, selector: "ng-template[tuiAlert]", inputs: { options: ["tuiAlertOptions", "options"], open: ["tuiAlert", "open"] }, outputs: { openChange: "tuiAlertChange" }, providers: [tuiAsPopover(TuiAlertService)], usesInheritance: true, ngImport: i0 }); }
109
- }
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlert, decorators: [{
111
- type: Directive,
112
- args: [{
113
- standalone: true,
114
- selector: 'ng-template[tuiAlert]',
115
- inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],
116
- outputs: ['openChange: tuiAlertChange'],
117
- providers: [tuiAsPopover(TuiAlertService)],
118
- }]
119
- }] });
120
-
121
- class TuiAlerts {
122
- constructor() {
123
- this.injector = inject(INJECTOR);
124
- this.alerts$ = inject(TUI_ALERTS_GROUPED);
125
- this.trackBy = identity;
126
- this.mapper = (useValue) => Injector.create({
127
- providers: [
128
- {
129
- provide: POLYMORPHEUS_CONTEXT,
130
- useValue,
131
- },
132
- ],
133
- parent: this.injector,
134
- });
135
- }
136
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlerts, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
137
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiAlerts, isStandalone: true, selector: "tui-alerts", ngImport: i0, template: "@for (group of alerts$ | async; track trackBy(group)) {\n <div\n tuiAnimatedParent\n class=\"t-wrapper\"\n >\n @for (item of group; track item) {\n <ng-container\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n }\n </div>\n}\n", styles: ["tui-alerts>.t-wrapper{position:fixed;top:0;left:0;inline-size:100%;display:flex;flex-direction:column;pointer-events:none;box-sizing:border-box;block-size:100%;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}tui-alerts>.t-wrapper>*{pointer-events:auto}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }, { kind: "directive", type: TuiAnimatedParent, selector: "[tuiAnimatedParent]" }, { kind: "pipe", type: TuiMapperPipe, name: "tuiMapper" }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
138
- }
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlerts, decorators: [{
140
- type: Component,
141
- args: [{ selector: 'tui-alerts', imports: [AsyncPipe, NgComponentOutlet, TuiAnimatedParent, TuiMapperPipe], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, template: "@for (group of alerts$ | async; track trackBy(group)) {\n <div\n tuiAnimatedParent\n class=\"t-wrapper\"\n >\n @for (item of group; track item) {\n <ng-container\n [ngComponentOutlet]=\"item.component.component\"\n [ngComponentOutletInjector]=\"item | tuiMapper: mapper\"\n />\n }\n </div>\n}\n", styles: ["tui-alerts>.t-wrapper{position:fixed;top:0;left:0;inline-size:100%;display:flex;flex-direction:column;pointer-events:none;box-sizing:border-box;block-size:100%;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}tui-alerts>.t-wrapper>*{pointer-events:auto}\n"] }]
142
- }] });
143
-
144
- /**
145
- * Generated bundle index. Do not edit.
146
- */
147
-
148
- export { TUI_ALERTS, TUI_ALERTS_GROUPED, TUI_ALERT_DEFAULT_OPTIONS, TUI_ALERT_OPTIONS, TUI_ALERT_POSITION, TuiAlert, TuiAlertComponent, TuiAlertService, TuiAlerts, tuiAlertOptionsProvider };
149
- //# sourceMappingURL=taiga-ui-core-components-alert.mjs.map