@taiga-ui/core 4.52.0-canary.c107f6a → 4.52.0-canary.ca43bcb

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 (234) 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/{pipes/calendar-sheet → components/calendar}/calendar-sheet.pipe.d.ts +1 -1
  5. package/components/calendar/calendar-spin.component.d.ts +1 -0
  6. package/components/calendar/calendar-year.component.d.ts +1 -1
  7. package/components/calendar/index.d.ts +2 -0
  8. package/components/data-list/data-list.component.d.ts +7 -11
  9. package/components/data-list/data-list.d.ts +2 -4
  10. package/components/data-list/data-list.tokens.d.ts +1 -5
  11. package/components/data-list/index.d.ts +0 -2
  12. package/components/data-list/opt-group.directive.d.ts +2 -2
  13. package/components/data-list/option/option-content.d.ts +6 -8
  14. package/components/data-list/option/option.directive.d.ts +7 -8
  15. package/components/index.d.ts +2 -4
  16. package/components/input/index.d.ts +2 -0
  17. package/components/input/input.d.ts +2 -0
  18. package/components/input/input.directive.d.ts +30 -0
  19. package/components/link/link.options.d.ts +1 -3
  20. package/components/loader/loader.options.d.ts +1 -3
  21. package/components/notification/index.d.ts +3 -0
  22. package/components/notification/notification.component.d.ts +14 -0
  23. package/components/notification/notification.d.ts +3 -0
  24. package/components/notification/notification.directive.d.ts +4 -5
  25. package/components/notification/notification.options.d.ts +10 -7
  26. package/components/notification/notification.service.d.ts +17 -0
  27. package/components/root/root.component.d.ts +1 -1
  28. package/components/textfield/index.d.ts +0 -1
  29. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  30. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +8 -12
  31. package/components/textfield/textfield.component.d.ts +23 -35
  32. package/components/textfield/textfield.d.ts +2 -3
  33. package/directives/group/group.directive.d.ts +7 -7
  34. package/directives/group/group.options.d.ts +1 -3
  35. package/directives/index.d.ts +0 -5
  36. package/fesm2022/taiga-ui-core-classes.mjs +6 -8
  37. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  38. package/fesm2022/taiga-ui-core-components-calendar.mjs +120 -21
  39. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-core-components-data-list.mjs +44 -197
  41. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-core-components-error.mjs +2 -1
  43. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-core-components-input.mjs +95 -0
  45. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  46. package/fesm2022/taiga-ui-core-components-link.mjs +6 -10
  47. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  48. package/fesm2022/taiga-ui-core-components-loader.mjs +3 -8
  49. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  50. package/fesm2022/taiga-ui-core-components-notification.mjs +92 -20
  51. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-core-components-root.mjs +6 -8
  53. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +1 -2
  55. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-core-components-textfield.mjs +82 -237
  57. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  58. package/fesm2022/{taiga-ui-core-directives-title.mjs → taiga-ui-core-components-title.mjs} +1 -1
  59. package/fesm2022/{taiga-ui-core-directives-title.mjs.map → taiga-ui-core-components-title.mjs.map} +1 -1
  60. package/fesm2022/taiga-ui-core-components.mjs +2 -4
  61. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-core-directives-appearance.mjs +6 -5
  63. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  64. package/fesm2022/taiga-ui-core-directives-group.mjs +17 -29
  65. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-core-directives-icons.mjs +2 -1
  67. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +1 -1
  69. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-core-directives.mjs +0 -5
  71. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +19 -13
  73. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-core-pipes.mjs +0 -7
  75. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  77. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  78. package/fesm2022/taiga-ui-core-portals-dialog.mjs +158 -0
  79. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  80. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +109 -205
  81. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  82. package/fesm2022/{taiga-ui-core-directives-hint.mjs → taiga-ui-core-portals-hint.mjs} +9 -10
  83. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  84. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  85. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  86. package/fesm2022/{taiga-ui-core-directives-popup.mjs → taiga-ui-core-portals-popup.mjs} +2 -2
  87. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  88. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  89. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  90. package/fesm2022/taiga-ui-core-services.mjs +3 -23
  91. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-tokens.mjs +4 -13
  93. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  95. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +7 -16
  97. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core.mjs +1 -0
  99. package/fesm2022/taiga-ui-core.mjs.map +1 -1
  100. package/index.d.ts +1 -0
  101. package/package.json +38 -66
  102. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  103. package/pipes/index.d.ts +0 -7
  104. package/{directives/notification/notification.directive.d.ts → portals/alert/alert.directive.d.ts} +3 -3
  105. package/{directives/notification/notification.service.d.ts → portals/alert/alert.service.d.ts} +3 -3
  106. package/portals/alert/index.d.ts +2 -0
  107. package/{components → portals}/dialog/dialog.component.d.ts +2 -3
  108. package/{components → portals}/dialog/dialog.options.d.ts +2 -3
  109. package/{components → portals}/dialog/dialog.providers.d.ts +1 -2
  110. package/{components → portals}/dialog/dialog.service.d.ts +1 -1
  111. package/{components → portals}/dialog/index.d.ts +0 -1
  112. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  113. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  114. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  115. package/portals/dropdown/dropdown-open.directive.d.ts +30 -0
  116. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  117. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +5 -5
  118. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  119. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  120. package/{directives → portals}/dropdown/dropdown.d.ts +1 -2
  121. package/{directives → portals}/dropdown/dropdown.directive.d.ts +5 -6
  122. package/{directives → portals}/dropdown/index.d.ts +0 -1
  123. package/portals/index.d.ts +6 -0
  124. package/{components → portals}/modal/modal.component.d.ts +3 -3
  125. package/{components → portals}/modal/modal.service.d.ts +3 -3
  126. package/services/index.d.ts +0 -1
  127. package/styles/components/link.less +1 -0
  128. package/styles/components/textfield.less +0 -1
  129. package/styles/mixins/appearance.less +1 -1
  130. package/styles/mixins/mixins.less +0 -5
  131. package/styles/mixins/mixins.scss +0 -5
  132. package/styles/mixins/slider.scss +1 -2
  133. package/styles/theme/variables.less +2 -4
  134. package/tokens/common-icons.d.ts +1 -3
  135. package/tokens/icons.d.ts +0 -4
  136. package/types/index.d.ts +0 -2
  137. package/types/size.d.ts +0 -11
  138. package/utils/format/index.d.ts +0 -1
  139. package/utils/miscellaneous/get-duration.d.ts +2 -0
  140. package/utils/miscellaneous/index.d.ts +1 -1
  141. package/components/alert/alert.component.d.ts +0 -14
  142. package/components/alert/alert.directive.d.ts +0 -8
  143. package/components/alert/alert.interfaces.d.ts +0 -13
  144. package/components/alert/alert.service.d.ts +0 -11
  145. package/components/alert/alert.tokens.d.ts +0 -6
  146. package/components/alert/index.d.ts +0 -5
  147. package/components/data-list/data-list.directive.d.ts +0 -7
  148. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  149. package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
  150. package/components/dialog/dialogs.component.d.ts +0 -8
  151. package/components/header/header.directive.d.ts +0 -17
  152. package/components/header/index.d.ts +0 -1
  153. package/components/textfield/textfield.directive.d.ts +0 -35
  154. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  155. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  156. package/directives/notification/index.d.ts +0 -2
  157. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -110
  158. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  159. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -226
  160. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  161. package/fesm2022/taiga-ui-core-components-header.mjs +0 -42
  162. package/fesm2022/taiga-ui-core-components-header.mjs.map +0 -1
  163. package/fesm2022/taiga-ui-core-components-modal.mjs +0 -89
  164. package/fesm2022/taiga-ui-core-components-modal.mjs.map +0 -1
  165. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  166. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  167. package/fesm2022/taiga-ui-core-directives-notification.mjs +0 -73
  168. package/fesm2022/taiga-ui-core-directives-notification.mjs.map +0 -1
  169. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  170. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -24
  171. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  172. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -93
  173. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  174. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -31
  175. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  176. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -27
  177. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  178. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -28
  179. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  180. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  181. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  182. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -35
  183. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  184. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  185. package/pipes/auto-color/index.d.ts +0 -1
  186. package/pipes/calendar-sheet/index.d.ts +0 -1
  187. package/pipes/calendar-sheet/utils.d.ts +0 -20
  188. package/pipes/flag/flag.pipe.d.ts +0 -14
  189. package/pipes/flag/index.d.ts +0 -1
  190. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  191. package/pipes/format-date/index.d.ts +0 -1
  192. package/pipes/initials/index.d.ts +0 -1
  193. package/pipes/initials/initials.pipe.d.ts +0 -7
  194. package/pipes/month/index.d.ts +0 -1
  195. package/pipes/month/month.pipe.d.ts +0 -10
  196. package/pipes/order-week-days/index.d.ts +0 -1
  197. package/services/format-date.service.d.ts +0 -8
  198. package/types/range-state.d.ts +0 -4
  199. package/types/value-content-context.d.ts +0 -4
  200. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  201. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  202. /package/{pipes/order-week-days → components/calendar}/order-week-days.pipe.d.ts +0 -0
  203. /package/{directives → components}/title/index.d.ts +0 -0
  204. /package/{directives → components}/title/title.directive.d.ts +0 -0
  205. /package/{components → portals}/dialog/dialog.directive.d.ts +0 -0
  206. /package/{components → portals}/dialog/dialog.factory.d.ts +0 -0
  207. /package/{directives → portals}/dropdown/dropdown-content.directive.d.ts +0 -0
  208. /package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -0
  209. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  210. /package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +0 -0
  211. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  212. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  213. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  214. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  215. /package/{directives → portals}/hint/hint-describe.directive.d.ts +0 -0
  216. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  217. /package/{directives → portals}/hint/hint-host.directive.d.ts +0 -0
  218. /package/{directives → portals}/hint/hint-hover.directive.d.ts +0 -0
  219. /package/{directives → portals}/hint/hint-manual.directive.d.ts +0 -0
  220. /package/{directives → portals}/hint/hint-options.directive.d.ts +0 -0
  221. /package/{directives → portals}/hint/hint-overflow.directive.d.ts +0 -0
  222. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  223. /package/{directives → portals}/hint/hint-position.directive.d.ts +0 -0
  224. /package/{directives → portals}/hint/hint-unstyled.component.d.ts +0 -0
  225. /package/{directives → portals}/hint/hint.component.d.ts +0 -0
  226. /package/{directives → portals}/hint/hint.d.ts +0 -0
  227. /package/{directives → portals}/hint/hint.directive.d.ts +0 -0
  228. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  229. /package/{directives → portals}/hint/index.d.ts +0 -0
  230. /package/{components → portals}/modal/index.d.ts +0 -0
  231. /package/{directives → portals}/popup/index.d.ts +0 -0
  232. /package/{directives → portals}/popup/popup.directive.d.ts +0 -0
  233. /package/{directives → portals}/popup/popup.service.d.ts +0 -0
  234. /package/{directives → portals}/popup/popups.component.d.ts +0 -0
@@ -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
  }
@@ -60,12 +60,11 @@ $track-inset: (
60
60
  --t-offset: calc(var(--tui-radius-l) / 2 + $thumb / 2);
61
61
  }
62
62
 
63
- tui-input-range:not([new]) + &, /* TODO(v5): delete */
64
63
  tui-range + & {
65
64
  --t-offset: $thumb;
66
65
  }
67
66
 
68
- tui-input-range[new] + & {
67
+ tui-input-range + & {
69
68
  --t-offset: calc(map-get($track-inset, $input-size) + $thumb);
70
69
  }
71
70
  }
@@ -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;
package/tokens/icons.d.ts CHANGED
@@ -1,7 +1,3 @@
1
1
  import { type FactoryProvider, InjectionToken } from '@angular/core';
2
2
  export declare const TUI_ICON_REGISTRY: InjectionToken<Record<string, string>>;
3
- /**
4
- * @deprecated: use {@link TUI_ICON_REGISTRY}
5
- */
6
- export declare const TUI_ICON_STARTS: InjectionToken<Record<string, string>>;
7
3
  export declare function tuiIconsProvider(icons: Record<string, string>): FactoryProvider;
package/types/index.d.ts CHANGED
@@ -2,6 +2,4 @@ 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 './range-state';
6
5
  export type * from './size';
7
- export type * from './value-content-context';
package/types/size.d.ts CHANGED
@@ -1,14 +1,3 @@
1
- /**
2
- * Various sizes for components
3
- *
4
- * 'xxs' - extra extra small
5
- * 'xs' - extra small
6
- * 's' - small
7
- * 'm' - medium (typically default)
8
- * 'l' - large
9
- * 'xl' - extra large
10
- * 'xxl' - extra extra large
11
- */
12
1
  export type TuiSizeM = 'm';
13
2
  export type TuiSizeS = TuiSizeM | 's';
14
3
  export type TuiSizeL = TuiSizeM | 'l';
@@ -1,4 +1,3 @@
1
1
  export * from './format-number';
2
2
  export * from './get-fractional-part-padded';
3
3
  export * from './number-to-string-without-exp';
4
- export * from './string-hash-to-hsl';
@@ -0,0 +1,2 @@
1
+ export declare const TUI_ANIMATIONS_DEFAULT_DURATION = 300;
2
+ export declare function tuiGetDuration(speed: number): number;
@@ -1,7 +1,7 @@
1
1
  export * from './font-scaling';
2
+ export * from './get-duration';
2
3
  export * from './is-editing-key';
3
4
  export * from './is-obscured';
4
5
  export * from './override-options';
5
6
  export * from './provide-taiga';
6
7
  export * from './size-bigger';
7
- export * from './to-animation-options';
@@ -1,14 +0,0 @@
1
- import { type TuiPortalContext } from '@taiga-ui/cdk/portals';
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
- import * as i2 from "@taiga-ui/core/directives";
6
- export declare class TuiAlertComponent<O, I> {
7
- private readonly el;
8
- protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
9
- protected readonly close: import("@angular/core").Signal<string>;
10
- protected readonly item: TuiPortalContext<TuiAlertOptions<I>, O>;
11
- protected readonly sub: import("rxjs").Subscription;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlertComponent<any, any>, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiAlertComponent<any, any>, "tui-alert", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiNotificationDirective; inputs: {}; outputs: {}; }]>;
14
- }
@@ -1,8 +0,0 @@
1
- import { type TuiAlertOptions } from './alert.interfaces';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@taiga-ui/cdk/portals";
4
- export declare class TuiAlert<T> {
5
- readonly tuiAlertOptions: import("@angular/core").InputSignal<Partial<TuiAlertOptions<T>>>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlert<any>, never>;
7
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAlert<any>, "ng-template[tuiAlert]", never, { "tuiAlertOptions": { "alias": "tuiAlertOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.TuiPortalDirective; inputs: { "options": "tuiAlertOptions"; "open": "tuiAlert"; }; outputs: { "openChange": "tuiAlertChange"; }; }]>;
8
- }
@@ -1,13 +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 TuiPositionOptions } from '@taiga-ui/core/directives';
5
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
6
- export interface TuiAlertOptions<I = undefined> extends Omit<TuiNotificationOptions, 'size'>, TuiPositionOptions {
7
- readonly autoClose: TuiHandler<string, number> | number;
8
- readonly data: I;
9
- readonly closable: boolean;
10
- readonly label: PolymorpheusContent<TuiAlertOptions<I>>;
11
- }
12
- export interface TuiAlertContext<O = void, I = undefined> extends TuiPopoverContext<O>, TuiAlertOptions<I> {
13
- }
@@ -1,11 +0,0 @@
1
- import { TuiNotificationService } from '@taiga-ui/core/directives/notification';
2
- import { TuiAlertComponent } from './alert.component';
3
- import { type TuiAlertOptions } from './alert.interfaces';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiAlertService extends TuiNotificationService<TuiAlertOptions<any>> {
6
- protected readonly options: TuiAlertOptions<undefined>;
7
- protected readonly component: typeof TuiAlertComponent;
8
- constructor();
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlertService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiAlertService>;
11
- }
@@ -1,6 +0,0 @@
1
- import { type FactoryProvider, InjectionToken } from '@angular/core';
2
- import { type TuiAlertOptions } from './alert.interfaces';
3
- export declare const TUI_ALERT_CONCURRENCY: InjectionToken<number>;
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 function tuiAlertOptionsProvider(options: Partial<TuiAlertOptions>): FactoryProvider;
@@ -1,5 +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';
@@ -1,7 +0,0 @@
1
- import { type Provider, type Type } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TuiDataListDirective {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDataListDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDataListDirective, "ng-template[tuiDataList]", never, {}, {}, never, never, true, never>;
6
- }
7
- export declare function tuiAsDataList(list: Type<TuiDataListDirective>): Provider;
@@ -1,24 +0,0 @@
1
- import { type OnDestroy, type TemplateRef } from '@angular/core';
2
- import { type TuiContext } from '@taiga-ui/cdk/types';
3
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@taiga-ui/core/directives/icons";
6
- /**
7
- * TODO(v5): delete
8
- * @deprecated use `<button tuiOption new />` / `<a tuiOption new /> / `<label tuiOption new /> instead
9
- */
10
- export declare class TuiOption<T = unknown> implements OnDestroy {
11
- private readonly isMobile;
12
- private readonly el;
13
- private readonly dataList;
14
- private readonly host;
15
- protected readonly content: PolymorpheusContent<TuiContext<TemplateRef<Record<string, unknown>>>>;
16
- protected readonly dropdown: import("@angular/core").WritableSignal<import("@angular/core").ComponentRef<unknown> | null> | undefined;
17
- disabled: boolean;
18
- value?: T;
19
- ngOnDestroy(): void;
20
- protected onClick(): void;
21
- protected onMouseMove(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiOption<any>, never>;
23
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiOption<any>, "button[tuiOption]:not([new]), a[tuiOption]:not([new]), label[tuiOption]:not([new])", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.TuiWithIcons; inputs: {}; outputs: {}; }]>;
24
- }
@@ -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,35 +0,0 @@
1
- import { NgControl } from '@angular/forms';
2
- import { type TuiItemsHandlers } from '@taiga-ui/core/directives/items-handlers';
3
- import { type TuiInteractiveState } from '@taiga-ui/core/types';
4
- import { TuiTextfieldComponent } from './textfield.component';
5
- import { type TuiTextfieldAccessor } from './textfield-accessor';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@taiga-ui/cdk/directives/native-validator";
8
- import * as i2 from "@taiga-ui/core/directives/appearance";
9
- export declare class TuiTextfieldBase<T> implements TuiTextfieldAccessor<T> {
10
- protected readonly control: NgControl | null;
11
- protected readonly a: import("@angular/core").Signal<string>;
12
- protected readonly s: import("@angular/core").Signal<TuiInteractiveState | null>;
13
- protected readonly m: import("@angular/core").Signal<string | readonly string[] | null>;
14
- protected readonly f: import("@angular/core").Signal<boolean | null>;
15
- protected readonly el: HTMLInputElement;
16
- protected readonly handlers: TuiItemsHandlers<T>;
17
- protected readonly textfield: TuiTextfieldComponent<T>;
18
- readonly readOnly: import("@angular/core").InputSignal<boolean>;
19
- readonly invalid: import("@angular/core").InputSignal<boolean | null>;
20
- readonly value: import("@angular/core").WritableSignal<string>;
21
- readonly focused: import("@angular/core").InputSignal<boolean | null>;
22
- readonly state: import("@angular/core").InputSignal<TuiInteractiveState | null>;
23
- readonly mode: import("@angular/core").Signal<string | null>;
24
- setValue(value: T | null): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiTextfieldBase<any>, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTextfieldBase<any>, never, never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
27
- }
28
- export declare class TuiTextfieldDirective<T> extends TuiTextfieldBase<T> {
29
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiTextfieldDirective<any>, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiTextfieldDirective<any>, "input[tuiTextfield]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiNativeValidator; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAppearance; inputs: {}; outputs: {}; }]>;
31
- }
32
- export declare class TuiWithTextfield {
33
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiWithTextfield, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiWithTextfield, never, never, {}, {}, never, never, true, [{ directive: typeof TuiTextfieldDirective; inputs: { "invalid": "invalid"; "focused": "focused"; "readOnly": "readOnly"; "state": "state"; }; outputs: {}; }]>;
35
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * @deprecated TODO: remove in v.5 when legacy controls are dropped
4
- */
5
- export declare class TuiDropdownOpenLegacy {
6
- private readonly openStateSub;
7
- readonly tuiDropdownOpenChange: import("rxjs").Observable<boolean>;
8
- set tuiDropdownOpen(open: boolean);
9
- emitOpenChange(open: boolean): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownOpenLegacy, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownOpenLegacy, "[tuiDropdownOpen]:not([tuiDropdown]),[tuiDropdownOpenChange]:not([tuiDropdown])", never, { "tuiDropdownOpen": { "alias": "tuiDropdownOpen"; "required": false; }; }, { "tuiDropdownOpenChange": "tuiDropdownOpenChange"; }, never, never, true, never>;
12
- }
@@ -1,33 +0,0 @@
1
- import { EventEmitter, type OnChanges } from '@angular/core';
2
- import { TuiDropdownDriver } from './dropdown.driver';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@taiga-ui/cdk/directives/obscured";
5
- import * as i2 from "@taiga-ui/cdk/directives/active-zone";
6
- export declare class TuiDropdownOpen implements OnChanges {
7
- private readonly dropdownHost?;
8
- private readonly directive;
9
- private readonly el;
10
- private readonly obscured;
11
- private readonly activeZone;
12
- private readonly dropdown;
13
- tuiDropdownEnabled: boolean;
14
- tuiDropdownOpen: boolean | '';
15
- readonly tuiDropdownOpenChange: EventEmitter<boolean>;
16
- readonly driver: TuiDropdownDriver;
17
- readonly sub: import("rxjs").Subscription;
18
- readonly sync: import("rxjs").Subscription;
19
- ngOnChanges(): void;
20
- toggle(open: boolean): void;
21
- protected onEsc(event: KeyboardEvent): void;
22
- protected onClick(target: HTMLElement): void;
23
- protected onArrow(event: KeyboardEvent, up: boolean): void;
24
- protected onKeydown(event: KeyboardEvent): void;
25
- private get host();
26
- private get editable();
27
- private get focused();
28
- private update;
29
- private drive;
30
- private focusDropdown;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownOpen, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownOpen, "[tuiDropdown][tuiDropdownOpen],[tuiDropdown][tuiDropdownOpenChange]", never, { "tuiDropdownEnabled": { "alias": "tuiDropdownEnabled"; "required": false; }; "tuiDropdownOpen": { "alias": "tuiDropdownOpen"; "required": false; }; }, { "tuiDropdownOpenChange": "tuiDropdownOpenChange"; }, ["dropdownHost"], never, true, [{ directive: typeof i1.TuiObscured; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiActiveZone; inputs: { "tuiActiveZoneParent": "tuiActiveZoneParent"; }; outputs: { "tuiActiveZoneChange": "tuiActiveZoneChange"; }; }]>;
33
- }
@@ -1,2 +0,0 @@
1
- export * from './notification.directive';
2
- export * from './notification.service';
@@ -1,110 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, ChangeDetectionStrategy, Component, InjectionToken, Injectable, input, Directive } from '@angular/core';
3
- import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
4
- import * as i1 from '@taiga-ui/cdk/directives/animated';
5
- import { TuiAnimated } 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 { TuiNotification, TUI_NOTIFICATION_OPTIONS } from '@taiga-ui/core/components/notification';
9
- import * as i2 from '@taiga-ui/core/directives';
10
- import { TuiNotificationDirective } from '@taiga-ui/core/directives';
11
- import { TuiTitle } from '@taiga-ui/core/directives/title';
12
- import { TUI_COMMON_ICONS, TUI_CLOSE_WORD } from '@taiga-ui/core/tokens';
13
- import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
14
- import { of, switchMap, timer, EMPTY, takeUntil, fromEvent, repeat } from 'rxjs';
15
- import * as i1$1 from '@taiga-ui/cdk/portals';
16
- import { tuiAsPortal, TuiPortalDirective } from '@taiga-ui/cdk/portals';
17
- import { TuiNotificationService } from '@taiga-ui/core/directives/notification';
18
- import { tuiCreateToken } from '@taiga-ui/cdk/utils/miscellaneous';
19
-
20
- class TuiAlertComponent {
21
- constructor() {
22
- this.el = tuiInjectElement();
23
- this.icons = inject(TUI_COMMON_ICONS);
24
- this.close = inject(TUI_CLOSE_WORD);
25
- this.item = injectContext();
26
- this.sub = of(typeof this.item.autoClose === 'function'
27
- ? this.item.autoClose(this.item.appearance)
28
- : this.item.autoClose)
29
- .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
30
- .subscribe(() => this.item.$implicit.complete());
31
- }
32
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
33
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.15", type: TuiAlertComponent, isStandalone: true, selector: "tui-alert", host: { attributes: { "role": "alert" } }, hostDirectives: [{ directive: i1.TuiAnimated }, { directive: i2.TuiNotificationDirective }], 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{inline-size:18rem;margin:1.625rem 3rem;word-break:break-word;transform:translateZ(0);filter:drop-shadow(0 .375rem 1rem rgba(0,0,0,.12))}:host :host-context(tui-root._mobile){margin:.625rem 1rem}.t-wrapper{background:var(--tui-background-base);clip-path:inset(.375rem 0 round var(--tui-radius-m))}.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 }); }
34
- }
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertComponent, decorators: [{
36
- type: Component,
37
- args: [{ selector: 'tui-alert', imports: [PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated, TuiNotificationDirective], host: { role: 'alert' }, 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{inline-size:18rem;margin:1.625rem 3rem;word-break:break-word;transform:translateZ(0);filter:drop-shadow(0 .375rem 1rem rgba(0,0,0,.12))}:host :host-context(tui-root._mobile){margin:.625rem 1rem}.t-wrapper{background:var(--tui-background-base);clip-path:inset(.375rem 0 round var(--tui-radius-m))}.t-closable{padding-inline-end:2.5rem}\n"] }]
38
- }] });
39
-
40
- const TUI_ALERT_CONCURRENCY = tuiCreateToken(5);
41
- const TUI_ALERT_DEFAULT_OPTIONS = {
42
- autoClose: 3000,
43
- label: '',
44
- closable: true,
45
- data: undefined,
46
- block: 'start',
47
- inline: 'end',
48
- };
49
- const TUI_ALERT_OPTIONS = new InjectionToken(ngDevMode ? 'TUI_ALERT_OPTIONS' : '', {
50
- factory: () => ({
51
- ...TUI_ALERT_DEFAULT_OPTIONS,
52
- ...inject(TUI_NOTIFICATION_OPTIONS),
53
- }),
54
- });
55
- function tuiAlertOptionsProvider(options) {
56
- return {
57
- provide: TUI_ALERT_OPTIONS,
58
- useFactory: () => ({
59
- ...TUI_ALERT_DEFAULT_OPTIONS,
60
- ...(inject(TUI_ALERT_OPTIONS, { optional: true, skipSelf: true }) ||
61
- inject(TUI_NOTIFICATION_OPTIONS)),
62
- ...options,
63
- }),
64
- };
65
- }
66
-
67
- class TuiAlertService extends TuiNotificationService {
68
- constructor() {
69
- super(inject(TUI_ALERT_CONCURRENCY));
70
- this.options = inject(TUI_ALERT_OPTIONS);
71
- this.component = TuiAlertComponent;
72
- }
73
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
74
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, providedIn: 'root' }); }
75
- }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlertService, decorators: [{
77
- type: Injectable,
78
- args: [{
79
- providedIn: 'root',
80
- }]
81
- }], ctorParameters: () => [] });
82
-
83
- class TuiAlert {
84
- constructor() {
85
- this.tuiAlertOptions = input({});
86
- }
87
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlert, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
88
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.15", type: TuiAlert, isStandalone: true, selector: "ng-template[tuiAlert]", inputs: { tuiAlertOptions: { classPropertyName: "tuiAlertOptions", publicName: "tuiAlertOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiAlertService)], hostDirectives: [{ directive: i1$1.TuiPortalDirective, inputs: ["options", "tuiAlertOptions", "open", "tuiAlert"], outputs: ["openChange", "tuiAlertChange"] }], ngImport: i0 }); }
89
- }
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiAlert, decorators: [{
91
- type: Directive,
92
- args: [{
93
- selector: 'ng-template[tuiAlert]',
94
- providers: [tuiAsPortal(TuiAlertService)],
95
- hostDirectives: [
96
- {
97
- directive: TuiPortalDirective,
98
- inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],
99
- outputs: ['openChange: tuiAlertChange'],
100
- },
101
- ],
102
- }]
103
- }] });
104
-
105
- /**
106
- * Generated bundle index. Do not edit.
107
- */
108
-
109
- export { TUI_ALERT_CONCURRENCY, TUI_ALERT_DEFAULT_OPTIONS, TUI_ALERT_OPTIONS, TuiAlert, TuiAlertComponent, TuiAlertService, tuiAlertOptionsProvider };
110
- //# sourceMappingURL=taiga-ui-core-components-alert.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"taiga-ui-core-components-alert.mjs","sources":["../../../projects/core/components/alert/alert.component.ts","../../../projects/core/components/alert/alert.template.html","../../../projects/core/components/alert/alert.tokens.ts","../../../projects/core/components/alert/alert.service.ts","../../../projects/core/components/alert/alert.directive.ts","../../../projects/core/components/alert/taiga-ui-core-components-alert.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, inject} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiPortalContext} from '@taiga-ui/cdk/portals';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TuiNotification} from '@taiga-ui/core/components/notification';\nimport {TuiNotificationDirective} from '@taiga-ui/core/directives';\nimport {TuiTitle} from '@taiga-ui/core/directives/title';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\n@Component({\n selector: 'tui-alert',\n imports: [PolymorpheusOutlet, TuiButton, TuiNotification, TuiTitle],\n templateUrl: './alert.template.html',\n styleUrl: './alert.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated, TuiNotificationDirective],\n host: {role: 'alert'},\n})\nexport class TuiAlertComponent<O, I> {\n private readonly el = tuiInjectElement();\n\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly close = inject(TUI_CLOSE_WORD);\n protected readonly item = injectContext<TuiPortalContext<TuiAlertOptions<I>, O>>();\n\n protected readonly sub = of(\n typeof this.item.autoClose === 'function'\n ? this.item.autoClose(this.item.appearance)\n : this.item.autoClose,\n )\n .pipe(\n switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)),\n takeUntil(fromEvent(this.el, 'mouseenter')),\n repeat({delay: () => fromEvent(this.el, 'mouseleave')}),\n takeUntilDestroyed(),\n )\n .subscribe(() => this.item.$implicit.complete());\n}\n","<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","import {type FactoryProvider, inject, InjectionToken} from '@angular/core';\nimport {tuiCreateToken} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\n\nexport const TUI_ALERT_CONCURRENCY = tuiCreateToken<number>(5);\n\nexport const TUI_ALERT_DEFAULT_OPTIONS: Omit<TuiAlertOptions, 'appearance' | 'icon'> = {\n autoClose: 3000,\n label: '',\n closable: true,\n data: undefined,\n block: 'start',\n inline: 'end',\n};\n\nexport const TUI_ALERT_OPTIONS = new InjectionToken<TuiAlertOptions>(\n ngDevMode ? 'TUI_ALERT_OPTIONS' : '',\n {\n factory: () => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...inject(TUI_NOTIFICATION_OPTIONS),\n }),\n },\n);\n\nexport function tuiAlertOptionsProvider(\n options: Partial<TuiAlertOptions>,\n): FactoryProvider {\n return {\n provide: TUI_ALERT_OPTIONS,\n useFactory: (): TuiAlertOptions => ({\n ...TUI_ALERT_DEFAULT_OPTIONS,\n ...(inject(TUI_ALERT_OPTIONS, {optional: true, skipSelf: true}) ||\n inject(TUI_NOTIFICATION_OPTIONS)),\n ...options,\n }),\n };\n}\n","import {inject, Injectable} from '@angular/core';\nimport {TuiNotificationService} from '@taiga-ui/core/directives/notification';\n\nimport {TuiAlertComponent} from './alert.component';\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TUI_ALERT_CONCURRENCY, TUI_ALERT_OPTIONS} from './alert.tokens';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class TuiAlertService extends TuiNotificationService<TuiAlertOptions<any>> {\n protected override readonly options = inject(TUI_ALERT_OPTIONS);\n protected override readonly component = TuiAlertComponent;\n\n constructor() {\n super(inject(TUI_ALERT_CONCURRENCY));\n }\n}\n","import {Directive, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\n\nimport {type TuiAlertOptions} from './alert.interfaces';\nimport {TuiAlertService} from './alert.service';\n\n@Directive({\n selector: 'ng-template[tuiAlert]',\n providers: [tuiAsPortal(TuiAlertService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['options: tuiAlertOptions', 'open: tuiAlert'],\n outputs: ['openChange: tuiAlertChange'],\n },\n ],\n})\nexport class TuiAlert<T> {\n public readonly tuiAlertOptions = input<Partial<TuiAlertOptions<T>>>({});\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;MAwBa,iBAAiB,CAAA;AAT9B,IAAA,WAAA,GAAA;QAUqB,IAAE,CAAA,EAAA,GAAG,gBAAgB,EAAE;AAErB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC;AAChC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC;QAC9B,IAAI,CAAA,IAAA,GAAG,aAAa,EAA2C;QAE/D,IAAG,CAAA,GAAA,GAAG,EAAE,CACvB,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,KAAK;AAC3B,cAAE,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU;AAC1C,cAAE,IAAI,CAAC,IAAI,CAAC,SAAS;aAExB,IAAI,CACD,SAAS,CAAC,CAAC,SAAS,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,EAChE,SAAS,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,CAAC,CAAC,EAC3C,MAAM,CAAC,EAAC,KAA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