@taiga-ui/kit 5.10.0-canary.ed6b235 → 5.11.0

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 (159) hide show
  1. package/components/input-color/input-color-content.component.d.ts +11 -0
  2. package/components/input-color/input-color.component.d.ts +4 -7
  3. package/components/input-date/index.d.ts +0 -1
  4. package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
  5. package/components/input-date-time/index.d.ts +0 -1
  6. package/components/input-month/index.d.ts +0 -1
  7. package/components/input-phone-international/input-phone-international-content.component.d.ts +21 -0
  8. package/components/input-phone-international/input-phone-international.component.d.ts +10 -20
  9. package/components/input-pin/index.d.ts +0 -1
  10. package/components/input-time/index.d.ts +0 -1
  11. package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +1 -0
  12. package/components/segmented/segmented.directive.d.ts +2 -1
  13. package/components/toast/toast.component.d.ts +0 -1
  14. package/components/toast/toast.directive.d.ts +1 -0
  15. package/fesm2022/taiga-ui-kit-components-accordion.mjs +7 -7
  16. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +3 -3
  18. package/fesm2022/taiga-ui-kit-components-avatar.mjs +23 -23
  19. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +4 -4
  21. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-kit-components-badge.mjs +7 -7
  23. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-kit-components-badged-content.mjs +6 -6
  25. package/fesm2022/taiga-ui-kit-components-block.mjs +7 -7
  26. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -5
  28. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-kit-components-button-loading.mjs +3 -3
  30. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +3 -3
  31. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +3 -3
  32. package/fesm2022/taiga-ui-kit-components-chip.mjs +7 -7
  33. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  34. package/fesm2022/taiga-ui-kit-components-combo-box.mjs +3 -3
  35. package/fesm2022/taiga-ui-kit-components-comment.mjs +7 -7
  36. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-kit-components-compass.mjs +4 -4
  38. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-kit-components-confirm.mjs +6 -6
  40. package/fesm2022/taiga-ui-kit-components-copy.mjs +11 -11
  41. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-kit-components-counter.mjs +3 -3
  43. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +6 -6
  44. package/fesm2022/taiga-ui-kit-components-drawer.mjs +3 -3
  45. package/fesm2022/taiga-ui-kit-components-files.mjs +25 -25
  46. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-kit-components-filter.mjs +3 -3
  48. package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +3 -3
  49. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +6 -6
  50. package/fesm2022/taiga-ui-kit-components-input-color.mjs +58 -30
  51. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  52. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +6 -8
  53. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  54. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +5 -5
  55. package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
  56. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +15 -15
  57. package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
  58. package/fesm2022/taiga-ui-kit-components-input-date.mjs +19 -19
  59. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  60. package/fesm2022/taiga-ui-kit-components-input-inline.mjs +4 -4
  61. package/fesm2022/taiga-ui-kit-components-input-inline.mjs.map +1 -1
  62. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
  63. package/fesm2022/taiga-ui-kit-components-input-month.mjs +13 -13
  64. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-kit-components-input-number.mjs +38 -38
  66. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +98 -68
  68. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +3 -3
  70. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +15 -11
  71. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-input-range.mjs +3 -3
  73. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +7 -7
  74. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-kit-components-input-time.mjs +18 -18
  76. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-input-year.mjs +5 -5
  78. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-items-with-more.mjs +12 -12
  80. package/fesm2022/taiga-ui-kit-components-like.mjs +5 -5
  81. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +9 -9
  83. package/fesm2022/taiga-ui-kit-components-message.mjs +7 -7
  84. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +22 -15
  86. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +9 -9
  88. package/fesm2022/taiga-ui-kit-components-pager.mjs +3 -3
  89. package/fesm2022/taiga-ui-kit-components-pagination.mjs +3 -3
  90. package/fesm2022/taiga-ui-kit-components-pin.mjs +7 -7
  91. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-pincode.mjs +13 -7
  93. package/fesm2022/taiga-ui-kit-components-pincode.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-preview.mjs +26 -26
  95. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-progress.mjs +27 -27
  97. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-pulse.mjs +3 -3
  99. package/fesm2022/taiga-ui-kit-components-push.mjs +12 -12
  100. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +4 -4
  101. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-range.mjs +6 -6
  103. package/fesm2022/taiga-ui-kit-components-rating.mjs +3 -3
  104. package/fesm2022/taiga-ui-kit-components-routable-dialog.mjs +3 -3
  105. package/fesm2022/taiga-ui-kit-components-segmented.mjs +13 -14
  106. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-kit-components-select.mjs +9 -9
  108. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs +7 -7
  109. package/fesm2022/taiga-ui-kit-components-shrink-wrap.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-status.mjs +7 -7
  111. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-stepper.mjs +6 -6
  113. package/fesm2022/taiga-ui-kit-components-switch.mjs +4 -4
  114. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-kit-components-tabs.mjs +19 -19
  116. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-kit-components-textarea.mjs +12 -12
  118. package/fesm2022/taiga-ui-kit-components-tiles.mjs +14 -14
  119. package/fesm2022/taiga-ui-kit-components-tiles.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-timeline.mjs +6 -6
  121. package/fesm2022/taiga-ui-kit-components-toast.mjs +24 -19
  122. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  123. package/fesm2022/taiga-ui-kit-components-tree.mjs +24 -24
  124. package/fesm2022/taiga-ui-kit-directives-appearance-proxy.mjs +3 -3
  125. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +7 -7
  126. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  127. package/fesm2022/taiga-ui-kit-directives-button-select.mjs +3 -3
  128. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +7 -7
  129. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-directives-connected.mjs +7 -7
  131. package/fesm2022/taiga-ui-kit-directives-connected.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +3 -3
  133. package/fesm2022/taiga-ui-kit-directives-fade.mjs +7 -7
  134. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  135. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -3
  136. package/fesm2022/taiga-ui-kit-directives-highlight.mjs +3 -3
  137. package/fesm2022/taiga-ui-kit-directives-password.mjs +3 -3
  138. package/fesm2022/taiga-ui-kit-directives-present.mjs +3 -3
  139. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs +7 -7
  140. package/fesm2022/taiga-ui-kit-directives-sensitive.mjs.map +1 -1
  141. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs +7 -7
  142. package/fesm2022/taiga-ui-kit-directives-shimmer.mjs.map +1 -1
  143. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs +7 -7
  144. package/fesm2022/taiga-ui-kit-directives-skeleton.mjs.map +1 -1
  145. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +7 -7
  146. package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
  147. package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +3 -3
  148. package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +3 -3
  149. package/fesm2022/taiga-ui-kit-pipes-auto-color.mjs +3 -3
  150. package/fesm2022/taiga-ui-kit-pipes-emails.mjs +3 -3
  151. package/fesm2022/taiga-ui-kit-pipes-flag.mjs +3 -3
  152. package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +3 -3
  153. package/fesm2022/taiga-ui-kit-pipes-initials.mjs +3 -3
  154. package/fesm2022/taiga-ui-kit-pipes-sort-countries.mjs +3 -3
  155. package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs +3 -3
  156. package/fesm2022/taiga-ui-kit-pipes-stringify.mjs +3 -3
  157. package/fesm2022/taiga-ui-kit-utils.mjs +10 -4
  158. package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
  159. package/package.json +31 -31
@@ -6,9 +6,11 @@ import { tuiDirectiveBinding, tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
6
6
  import { tuiInjectElement } from '@taiga-ui/cdk/utils/dom';
7
7
  import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
8
8
  import { tuiButtonOptionsProvider, TuiButton } from '@taiga-ui/core/components/button';
9
+ import { tuiButtonXOptionsProvider, TuiButtonX } from '@taiga-ui/core/directives/button-x';
9
10
  import * as i1 from '@taiga-ui/core/directives/icons';
10
11
  import { TuiWithIcons } from '@taiga-ui/core/directives/icons';
11
12
  import { TUI_ICON_END, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
13
+ import { TUI_FONT_OFFSET } from '@taiga-ui/core/utils/miscellaneous';
12
14
  import { tuiAvatarOptionsProvider } from '@taiga-ui/kit/components/avatar';
13
15
  import { tuiBadgeOptionsProvider } from '@taiga-ui/kit/components/badge';
14
16
  import * as i2 from '@taiga-ui/kit/components/shrink-wrap';
@@ -26,21 +28,22 @@ import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
26
28
  import { of, switchMap, EMPTY, timer, takeUntil, fromEvent, repeat } from 'rxjs';
27
29
 
28
30
  class Styles {
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.21", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-toast-5.10.0-canary.ed6b235"], ngImport: i0, template: '', isInline: true, styles: ["[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]){transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;grid-row:1 / span 2;box-sizing:border-box;gap:.75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-typography-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;white-space:pre-line;text-align:start;overflow:hidden}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])>*:not(tui-shrink-wrap),[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after,[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):before{max-inline-size:50%;margin:0 -.25rem}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) [tuiAvatar]{margin-inline-end:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
32
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.24", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-toast-5.11.0"], ngImport: i0, template: '', isInline: true, styles: ["[tuiToast]:where(*[data-tui-version=\"5.11.0\"]){transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:grid;grid-auto-flow:column;grid-row:1 / span 2;grid-template-rows:1fr auto;box-sizing:border-box;gap:0 .75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-typography-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;white-space:pre-line;text-align:start;overflow:hidden}[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>*:not(tui-shrink-wrap){max-inline-size:50%;margin:0 -.25rem}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>*{grid-row:1}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiButtonX],[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiIconButton],[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>:first-child:not(tui-shrink-wrap,[tuiButton]){grid-row:span 2}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>tui-icon:not([tuiBadge]),[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):after,[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):before{min-inline-size:1em;margin:0 -.25rem;grid-row:span 2}[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiAvatar]{margin-inline-end:0}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>tui-loader,[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiButton]{inline-size:fit-content;min-inline-size:fit-content}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])._rearranged>[tuiButton]{grid-row:2;margin:.75rem 0 0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
31
33
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: Styles, decorators: [{
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: Styles, decorators: [{
33
35
  type: Component,
34
- args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-toast-${TUI_VERSION}`, styles: ["[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]){transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:flex;grid-row:1 / span 2;box-sizing:border-box;gap:.75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-typography-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;white-space:pre-line;text-align:start;overflow:hidden}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])>*:not(tui-shrink-wrap),[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after,[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):before{max-inline-size:50%;margin:0 -.25rem}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) [tuiAvatar]{margin-inline-end:0}\n"] }]
36
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-toast-${TUI_VERSION}`, styles: ["[tuiToast]:where(*[data-tui-version=\"5.11.0\"]){transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;display:grid;grid-auto-flow:column;grid-row:1 / span 2;grid-template-rows:1fr auto;box-sizing:border-box;gap:0 .75rem;color:var(--tui-text-primary);background:var(--tui-background-elevation-3);min-block-size:3.5rem;border-radius:1rem;padding:.75rem 1rem;box-shadow:var(--tui-shadow-medium);align-items:center;justify-content:center;inline-size:max-content;font:var(--tui-typography-ui-s);max-inline-size:min(calc(100vw - 2rem),25rem);border:inherit;text-decoration:none;white-space:pre-line;text-align:start;overflow:hidden}[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):is(a,button,select,textarea,input,label,.tui-interactive):not(:disabled){cursor:pointer}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>*:not(tui-shrink-wrap){max-inline-size:50%;margin:0 -.25rem}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>*{grid-row:1}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiButtonX],[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiIconButton],[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>:first-child:not(tui-shrink-wrap,[tuiButton]){grid-row:span 2}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>tui-icon:not([tuiBadge]),[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):after,[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):before{min-inline-size:1em;margin:0 -.25rem;grid-row:span 2}[tuiToast]:where(*[data-tui-version=\"5.11.0\"]):after{font-size:1rem;color:var(--tui-text-tertiary)}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiAvatar]{margin-inline-end:0}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>tui-loader,[tuiToast]:where(*[data-tui-version=\"5.11.0\"])>[tuiButton]{inline-size:fit-content;min-inline-size:fit-content}[tuiToast]:where(*[data-tui-version=\"5.11.0\"])._rearranged>[tuiButton]{grid-row:2;margin:.75rem 0 0}\n"] }]
35
37
  }] });
36
38
  class TuiToastDirective {
37
39
  constructor() {
38
40
  this.tuiShrinkWrap = input('min(calc(100vw - 4rem), 25rem)');
39
41
  this.nothing = tuiWithStyles(Styles);
42
+ this.offset = inject(TUI_FONT_OFFSET);
40
43
  this.width = tuiDirectiveBinding(TuiShrinkWrapDirective, 'tuiShrinkWrap', this.tuiShrinkWrap);
41
44
  }
42
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
43
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiToastDirective, isStandalone: true, selector: "[tuiToast]:not(ng-template)", inputs: { tuiShrinkWrap: { classPropertyName: "tuiShrinkWrap", publicName: "tuiShrinkWrap", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
45
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
46
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiToastDirective, isStandalone: true, selector: "[tuiToast]:not(ng-template)", inputs: { tuiShrinkWrap: { classPropertyName: "tuiShrinkWrap", publicName: "tuiShrinkWrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class._rearranged": "offset() > 10" } }, providers: [
44
47
  tuiBadgeOptionsProvider({ size: 'l' }),
45
48
  tuiAvatarOptionsProvider(() => ({
46
49
  size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',
@@ -49,6 +52,7 @@ class TuiToastDirective {
49
52
  size: 's',
50
53
  appearance: inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',
51
54
  })),
55
+ tuiButtonXOptionsProvider({ size: 'xs', appearance: 'icon' }),
52
56
  {
53
57
  provide: TUI_ICON_END,
54
58
  useFactory: () => tuiInjectElement().matches('a, button')
@@ -57,7 +61,7 @@ class TuiToastDirective {
57
61
  },
58
62
  ], hostDirectives: [{ directive: i1.TuiWithIcons }, { directive: i2.TuiShrinkWrapDirective }], ngImport: i0 }); }
59
63
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastDirective, decorators: [{
64
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastDirective, decorators: [{
61
65
  type: Directive,
62
66
  args: [{
63
67
  selector: '[tuiToast]:not(ng-template)',
@@ -70,6 +74,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
70
74
  size: 's',
71
75
  appearance: inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',
72
76
  })),
77
+ tuiButtonXOptionsProvider({ size: 'xs', appearance: 'icon' }),
73
78
  {
74
79
  provide: TUI_ICON_END,
75
80
  useFactory: () => tuiInjectElement().matches('a, button')
@@ -78,6 +83,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
78
83
  },
79
84
  ],
80
85
  hostDirectives: [TuiWithIcons, TuiShrinkWrapDirective],
86
+ host: { '[class._rearranged]': 'offset() > 10' },
81
87
  }]
82
88
  }] });
83
89
 
@@ -87,7 +93,6 @@ class TuiToastComponent {
87
93
  this.el = tuiInjectElement();
88
94
  this.isMobile = inject(WA_IS_MOBILE);
89
95
  this.context = injectContext();
90
- this.icons = inject(TUI_COMMON_ICONS);
91
96
  this.$ = of(this.context.autoClose)
92
97
  .pipe(switchMap((autoClose) => (autoClose ? timer(autoClose) : EMPTY)), takeUntil(fromEvent(this.el, 'mouseenter')), repeat({ delay: () => fromEvent(this.el, 'mouseleave') }), takeUntilDestroyed())
93
98
  .subscribe(() => this.context.$implicit.complete());
@@ -103,16 +108,16 @@ class TuiToastComponent {
103
108
  this.context.$implicit.complete();
104
109
  }
105
110
  }
106
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
107
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: TuiToastComponent, isStandalone: true, selector: "tui-toast", host: { attributes: { "role": "status" }, properties: { "attr.data-appearance": "context.appearance", "class._mobile": "isMobile" } }, viewQueries: [{ propertyName: "close", first: true, predicate: TuiButton, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1$1.TuiAnimated }, { directive: i2$1.TuiAlertDirective }], ngImport: i0, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n <tui-shrink-wrap><span [innerHTML]=\"text\"></span></tui-shrink-wrap>\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 auto;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\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: "component", type: i2.TuiShrinkWrapComponent, selector: "tui-shrink-wrap" }, { kind: "directive", type: TuiSwipe, selector: "[tuiSwipe]", outputs: ["tuiSwipe"] }, { kind: "directive", type: TuiToastDirective, selector: "[tuiToast]:not(ng-template)", inputs: ["tuiShrinkWrap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
112
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.24", type: TuiToastComponent, isStandalone: true, selector: "tui-toast", host: { attributes: { "role": "status" }, properties: { "attr.data-appearance": "context.appearance", "class._mobile": "isMobile" } }, providers: [tuiButtonXOptionsProvider({ size: 'xs', appearance: 'icon' })], viewQueries: [{ propertyName: "close", first: true, predicate: TuiButton, descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1$1.TuiAnimated }, { directive: i2$1.TuiAlertDirective }], ngImport: i0, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n <tui-shrink-wrap><span [innerHTML]=\"text\"></span></tui-shrink-wrap>\n </div>\n @if (context.closable && !isMobile) {\n <button\n tuiButtonX\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 auto;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiButtonX, selector: "[tuiButtonX]" }, { kind: "component", type: i2.TuiShrinkWrapComponent, selector: "tui-shrink-wrap" }, { kind: "directive", type: TuiSwipe, selector: "[tuiSwipe]", outputs: ["tuiSwipe"] }, { kind: "directive", type: TuiToastDirective, selector: "[tuiToast]:not(ng-template)", inputs: ["tuiShrinkWrap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
108
113
  }
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastComponent, decorators: [{
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastComponent, decorators: [{
110
115
  type: Component,
111
- args: [{ selector: 'tui-toast', imports: [PolymorpheusOutlet, TuiButton, TuiShrinkWrap, TuiSwipe, TuiToastDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [TuiAnimated, TuiAlertDirective], host: {
116
+ args: [{ selector: 'tui-toast', imports: [PolymorpheusOutlet, TuiButtonX, TuiShrinkWrap, TuiSwipe, TuiToastDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiButtonXOptionsProvider({ size: 'xs', appearance: 'icon' })], hostDirectives: [TuiAnimated, TuiAlertDirective], host: {
112
117
  role: 'status',
113
118
  '[attr.data-appearance]': 'context.appearance',
114
119
  '[class._mobile]': 'isMobile',
115
- }, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n <tui-shrink-wrap><span [innerHTML]=\"text\"></span></tui-shrink-wrap>\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 auto;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\n"] }]
120
+ }, template: "<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n <tui-shrink-wrap><span [innerHTML]=\"text\"></span></tui-shrink-wrap>\n </div>\n @if (context.closable && !isMobile) {\n <button\n tuiButtonX\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n", styles: [":host:host{inset:1.625rem 0;margin:0 auto;touch-action:none;animation-fill-mode:both}:host:host:nth-of-type(1){grid-row:5}:host:host:nth-of-type(2){grid-row:4}:host:host:nth-of-type(3){grid-row:3}:host:host:nth-of-type(4){grid-row:2}:host:host:nth-of-type(5){grid-row:1}:host:host[data-inline=center]{--tui-from: translateY(-2rem)}:host:host.tui-enter{place-items:end;animation-name:tuiSlide,tuiCollapse}:host:host.tui-leave{animation-name:tuiFade,tuiCollapse}:host:host.tui-leave:first-child{animation-name:tuiFade}:host:host[data-block=end]{inset:-1.625rem 0}:host:host[data-block=end][data-inline=center]{--tui-from: translateY(6rem)}:host:host._mobile{inset:0}:host:host._mobile.tui-enter{animation-delay:var(--tui-duration)}:host:host._mobile.tui-leave{place-items:end;animation-name:tuiSlide,tuiCollapse}\n"] }]
116
121
  }] });
117
122
 
118
123
  const TUI_TOAST_CONCURRENCY = new InjectionToken(ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '', { factory: () => (inject(WA_IS_MOBILE) ? 1 : 2) });
@@ -130,10 +135,10 @@ class TuiToastService extends TuiAlertService {
130
135
  this.options = inject(TUI_TOAST_OPTIONS);
131
136
  this.component = TuiToastComponent;
132
137
  }
133
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
134
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastService, providedIn: 'root' }); }
138
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
139
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastService, providedIn: 'root' }); }
135
140
  }
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastService, decorators: [{
141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastService, decorators: [{
137
142
  type: Injectable,
138
143
  args: [{ providedIn: 'root' }]
139
144
  }], ctorParameters: () => [] });
@@ -141,10 +146,10 @@ class TuiToastTemplate {
141
146
  constructor() {
142
147
  this.tuiToastOptions = input({});
143
148
  }
144
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
145
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiToastTemplate, isStandalone: true, selector: "ng-template[tuiToast]", inputs: { tuiToastOptions: { classPropertyName: "tuiToastOptions", publicName: "tuiToastOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiToastService)], hostDirectives: [{ directive: i1$2.TuiPortalDirective, inputs: ["options", "tuiToastOptions", "open", "tuiToast"], outputs: ["openChange", "tuiToastChange"] }], ngImport: i0 }); }
149
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
150
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiToastTemplate, isStandalone: true, selector: "ng-template[tuiToast]", inputs: { tuiToastOptions: { classPropertyName: "tuiToastOptions", publicName: "tuiToastOptions", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiAsPortal(TuiToastService)], hostDirectives: [{ directive: i1$2.TuiPortalDirective, inputs: ["options", "tuiToastOptions", "open", "tuiToast"], outputs: ["openChange", "tuiToastChange"] }], ngImport: i0 }); }
146
151
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiToastTemplate, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiToastTemplate, decorators: [{
148
153
  type: Directive,
149
154
  args: [{
150
155
  selector: 'ng-template[tuiToast]',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-components-toast.mjs","sources":["../../../projects/kit/components/toast/toast.directive.ts","../../../projects/kit/components/toast/toast.component.ts","../../../projects/kit/components/toast/toast.template.html","../../../projects/kit/components/toast/toast.options.ts","../../../projects/kit/components/toast/toast.service.ts","../../../projects/kit/components/toast/toast.ts","../../../projects/kit/components/toast/taiga-ui-kit-components-toast.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\nimport {TUI_COMMON_ICONS, TUI_ICON_END} from '@taiga-ui/core/tokens';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {tuiBadgeOptionsProvider} from '@taiga-ui/kit/components/badge';\nimport {TuiShrinkWrapDirective} from '@taiga-ui/kit/components/shrink-wrap';\n\n@Component({\n template: '',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import '@taiga-ui/styles/components/toast.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n exportAs: `tui-toast-${TUI_VERSION}`,\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiToast]:not(ng-template)',\n providers: [\n tuiBadgeOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider(() => ({\n size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',\n })),\n tuiButtonOptionsProvider(() => ({\n size: 's',\n appearance:\n inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',\n })),\n {\n provide: TUI_ICON_END,\n useFactory: () =>\n tuiInjectElement().matches('a, button')\n ? inject(TUI_COMMON_ICONS).more\n : '',\n },\n ],\n hostDirectives: [TuiWithIcons, TuiShrinkWrapDirective],\n})\nexport class TuiToastDirective {\n public readonly tuiShrinkWrap = input('min(calc(100vw - 4rem), 25rem)');\n\n protected readonly nothing = tuiWithStyles(Styles);\n\n protected readonly width = tuiDirectiveBinding(\n TuiShrinkWrapDirective,\n 'tuiShrinkWrap',\n this.tuiShrinkWrap,\n );\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n viewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiSwipe} from '@taiga-ui/cdk/directives/swipe';\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 {TuiAlertDirective} from '@taiga-ui/core/portals/alert';\nimport {TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {TuiShrinkWrap} from '@taiga-ui/kit/components/shrink-wrap';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {TuiToastDirective} from './toast.directive';\nimport {type TuiToastOptions} from './toast.options';\n\n@Component({\n selector: 'tui-toast',\n imports: [PolymorpheusOutlet, TuiButton, TuiShrinkWrap, TuiSwipe, TuiToastDirective],\n templateUrl: './toast.template.html',\n styleUrl: './toast.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated, TuiAlertDirective],\n host: {\n role: 'status',\n '[attr.data-appearance]': 'context.appearance',\n '[class._mobile]': 'isMobile',\n },\n})\nexport class TuiToastComponent<O, I> implements AfterViewInit {\n private readonly close = viewChild(TuiButton, {read: ElementRef});\n private readonly el = tuiInjectElement();\n\n protected readonly isMobile = inject(WA_IS_MOBILE);\n protected readonly context = injectContext<TuiPortalContext<TuiToastOptions<I>, O>>();\n protected readonly icons = inject(TUI_COMMON_ICONS);\n\n protected readonly $ = of(this.context.autoClose)\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.context.$implicit.complete());\n\n public ngAfterViewInit(): void {\n const close = this.close();\n\n if (close) {\n this.el.querySelector('[tuiToast]')?.appendChild(close.nativeElement);\n }\n }\n\n protected onSwipe(): void {\n if (this.context.closable) {\n this.context.$implicit.complete();\n }\n }\n}\n","<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n <tui-shrink-wrap><span [innerHTML]=\"text\"></span></tui-shrink-wrap>\n </div>\n @if (context.closable && !isMobile) {\n <button\n appearance=\"icon\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n [iconStart]=\"icons.close\"\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n","import {inject, InjectionToken} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiPositionOptions} from '@taiga-ui/core/portals/alert';\n\nexport interface TuiToastOptions<I> extends TuiPositionOptions {\n readonly autoClose: number;\n readonly closable: boolean;\n readonly appearance: string;\n readonly data?: I;\n}\n\nexport const TUI_TOAST_CONCURRENCY = new InjectionToken(\n ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '',\n {factory: () => (inject(WA_IS_MOBILE) ? 1 : 2)},\n);\n\nexport const [TUI_TOAST_OPTIONS, tuiToastOptionsProvider] = tuiCreateOptions<\n TuiToastOptions<any>\n>({\n appearance: '',\n autoClose: 5000,\n closable: true,\n block: 'start',\n inline: 'center',\n});\n","import {Directive, inject, Injectable, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\nimport {TuiAlertService} from '@taiga-ui/core/portals/alert';\n\nimport {TuiToastComponent} from './toast.component';\nimport {\n TUI_TOAST_CONCURRENCY,\n TUI_TOAST_OPTIONS,\n type TuiToastOptions,\n} from './toast.options';\n\n@Injectable({providedIn: 'root'})\nexport class TuiToastService extends TuiAlertService<TuiToastOptions<any>> {\n protected override readonly options = inject(TUI_TOAST_OPTIONS);\n protected override readonly component = TuiToastComponent;\n\n constructor() {\n super(inject(TUI_TOAST_CONCURRENCY));\n }\n}\n\n@Directive({\n selector: 'ng-template[tuiToast]',\n providers: [tuiAsPortal(TuiToastService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['options: tuiToastOptions', 'open: tuiToast'],\n outputs: ['openChange: tuiToastChange'],\n },\n ],\n})\nexport class TuiToastTemplate<T> {\n public readonly tuiToastOptions = input<Partial<TuiToastOptions<T>>>({});\n}\n","import {TuiToastDirective} from './toast.directive';\nimport {TuiToastTemplate} from './toast.service';\n\nexport const TuiToast = [TuiToastDirective, TuiToastTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAWM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,uHAVE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,mwCAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAUV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAXX,SA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AAC,eAAe,CAAC,CAAC;AACzC,oBAAA,cAAc,EAAE;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,kBAAkB;AAC7B,4BAAA,MAAM,EAAE,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;4BACtD,OAAO,EAAE,CAAC,4BAA4B,CAAC;AAC1C,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;MC5BY,QAAQ,GAAG,CAAC,iBAAiB,EAAE,gBAAgB;;ACH5D;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-components-toast.mjs","sources":["../../../projects/kit/components/toast/toast.directive.ts","../../../projects/kit/components/toast/toast.component.ts","../../../projects/kit/components/toast/toast.template.html","../../../projects/kit/components/toast/toast.options.ts","../../../projects/kit/components/toast/toast.service.ts","../../../projects/kit/components/toast/toast.ts","../../../projects/kit/components/toast/taiga-ui-kit-components-toast.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {TUI_PLATFORM} from '@taiga-ui/cdk/tokens';\nimport {tuiDirectiveBinding} from '@taiga-ui/cdk/utils/di';\nimport {tuiInjectElement} from '@taiga-ui/cdk/utils/dom';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {tuiButtonOptionsProvider} from '@taiga-ui/core/components/button';\nimport {tuiButtonXOptionsProvider} from '@taiga-ui/core/directives/button-x';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\nimport {TUI_COMMON_ICONS, TUI_ICON_END} from '@taiga-ui/core/tokens';\nimport {TUI_FONT_OFFSET} from '@taiga-ui/core/utils/miscellaneous';\nimport {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar';\nimport {tuiBadgeOptionsProvider} from '@taiga-ui/kit/components/badge';\nimport {TuiShrinkWrapDirective} from '@taiga-ui/kit/components/shrink-wrap';\n\n@Component({\n template: '',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import '@taiga-ui/styles/components/toast.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n exportAs: `tui-toast-${TUI_VERSION}`,\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiToast]:not(ng-template)',\n providers: [\n tuiBadgeOptionsProvider({size: 'l'}),\n tuiAvatarOptionsProvider(() => ({\n size: inject(TUI_PLATFORM) === 'web' ? 's' : 'm',\n })),\n tuiButtonOptionsProvider(() => ({\n size: 's',\n appearance:\n inject(TUI_PLATFORM) === 'web' ? 'secondary-grayscale' : 'secondary',\n })),\n tuiButtonXOptionsProvider({size: 'xs', appearance: 'icon'}),\n {\n provide: TUI_ICON_END,\n useFactory: () =>\n tuiInjectElement().matches('a, button')\n ? inject(TUI_COMMON_ICONS).more\n : '',\n },\n ],\n hostDirectives: [TuiWithIcons, TuiShrinkWrapDirective],\n host: {'[class._rearranged]': 'offset() > 10'},\n})\nexport class TuiToastDirective {\n public readonly tuiShrinkWrap = input('min(calc(100vw - 4rem), 25rem)');\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly offset = inject(TUI_FONT_OFFSET);\n\n protected readonly width = tuiDirectiveBinding(\n TuiShrinkWrapDirective,\n 'tuiShrinkWrap',\n this.tuiShrinkWrap,\n );\n}\n","import {\n type AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n inject,\n viewChild,\n} from '@angular/core';\nimport {takeUntilDestroyed} from '@angular/core/rxjs-interop';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiSwipe} from '@taiga-ui/cdk/directives/swipe';\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 {TuiButtonX, tuiButtonXOptionsProvider} from '@taiga-ui/core/directives/button-x';\nimport {TuiAlertDirective} from '@taiga-ui/core/portals/alert';\nimport {TuiShrinkWrap} from '@taiga-ui/kit/components/shrink-wrap';\nimport {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus';\nimport {EMPTY, fromEvent, of, repeat, switchMap, takeUntil, timer} from 'rxjs';\n\nimport {TuiToastDirective} from './toast.directive';\nimport {type TuiToastOptions} from './toast.options';\n\n@Component({\n selector: 'tui-toast',\n imports: [PolymorpheusOutlet, TuiButtonX, TuiShrinkWrap, TuiSwipe, TuiToastDirective],\n templateUrl: './toast.template.html',\n styleUrl: './toast.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [tuiButtonXOptionsProvider({size: 'xs', appearance: 'icon'})],\n hostDirectives: [TuiAnimated, TuiAlertDirective],\n host: {\n role: 'status',\n '[attr.data-appearance]': 'context.appearance',\n '[class._mobile]': 'isMobile',\n },\n})\nexport class TuiToastComponent<O, I> implements AfterViewInit {\n private readonly close = viewChild(TuiButton, {read: ElementRef});\n private readonly el = tuiInjectElement();\n\n protected readonly isMobile = inject(WA_IS_MOBILE);\n protected readonly context = injectContext<TuiPortalContext<TuiToastOptions<I>, O>>();\n\n protected readonly $ = of(this.context.autoClose)\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.context.$implicit.complete());\n\n public ngAfterViewInit(): void {\n const close = this.close();\n\n if (close) {\n this.el.querySelector('[tuiToast]')?.appendChild(close.nativeElement);\n }\n }\n\n protected onSwipe(): void {\n if (this.context.closable) {\n this.context.$implicit.complete();\n }\n }\n}\n","<div\n class=\"t-wrapper\"\n (tuiSwipe)=\"onSwipe()\"\n>\n <div\n *polymorpheusOutlet=\"context.content as text; context: context\"\n tuiToast\n [iconStart]=\"context.data?.toString() || ''\"\n >\n <tui-shrink-wrap><span [innerHTML]=\"text\"></span></tui-shrink-wrap>\n </div>\n @if (context.closable && !isMobile) {\n <button\n tuiButtonX\n (click.stop.prevent)=\"context.$implicit.complete()\"\n >\n Close\n </button>\n }\n</div>\n","import {inject, InjectionToken} from '@angular/core';\nimport {WA_IS_MOBILE} from '@ng-web-apis/platform';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiPositionOptions} from '@taiga-ui/core/portals/alert';\n\nexport interface TuiToastOptions<I> extends TuiPositionOptions {\n readonly autoClose: number;\n readonly closable: boolean;\n readonly appearance: string;\n readonly data?: I;\n}\n\nexport const TUI_TOAST_CONCURRENCY = new InjectionToken(\n ngDevMode ? 'TUI_TOAST_CONCURRENCY' : '',\n {factory: () => (inject(WA_IS_MOBILE) ? 1 : 2)},\n);\n\nexport const [TUI_TOAST_OPTIONS, tuiToastOptionsProvider] = tuiCreateOptions<\n TuiToastOptions<any>\n>({\n appearance: '',\n autoClose: 5000,\n closable: true,\n block: 'start',\n inline: 'center',\n});\n","import {Directive, inject, Injectable, input} from '@angular/core';\nimport {tuiAsPortal, TuiPortalDirective} from '@taiga-ui/cdk/portals';\nimport {TuiAlertService} from '@taiga-ui/core/portals/alert';\n\nimport {TuiToastComponent} from './toast.component';\nimport {\n TUI_TOAST_CONCURRENCY,\n TUI_TOAST_OPTIONS,\n type TuiToastOptions,\n} from './toast.options';\n\n@Injectable({providedIn: 'root'})\nexport class TuiToastService extends TuiAlertService<TuiToastOptions<any>> {\n protected override readonly options = inject(TUI_TOAST_OPTIONS);\n protected override readonly component = TuiToastComponent;\n\n constructor() {\n super(inject(TUI_TOAST_CONCURRENCY));\n }\n}\n\n@Directive({\n selector: 'ng-template[tuiToast]',\n providers: [tuiAsPortal(TuiToastService)],\n hostDirectives: [\n {\n directive: TuiPortalDirective,\n inputs: ['options: tuiToastOptions', 'open: tuiToast'],\n outputs: ['openChange: tuiToastChange'],\n },\n ],\n})\nexport class TuiToastTemplate<T> {\n public readonly tuiToastOptions = input<Partial<TuiToastOptions<T>>>({});\n}\n","import {TuiToastDirective} from './toast.directive';\nimport {TuiToastTemplate} from './toast.service';\n\nexport const TuiToast = [TuiToastDirective, TuiToastTemplate] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,MAWM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,wGAVE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,44DAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAUV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAXX,SAAS;+BACI,EAAE,EAAA,aAAA,EAMG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC,CAAA,UAAA,EAAa,WAAW,CAAA,CAAE,EAAA,MAAA,EAAA,CAAA,44DAAA,CAAA,EAAA;;MA4B3B,iBAAiB,CAAA;AAxB9B,IAAA,WAAA,GAAA;AAyBoB,QAAA,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,gCAAgC,CAAC;AAEpD,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;AAC/B,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC;QAEhC,IAAA,CAAA,KAAK,GAAG,mBAAmB,CAC1C,sBAAsB,EACt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5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,SAAS,EAAE,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;AACzC,oBAAA,cAAc,EAAE;AACZ,wBAAA;AACI,4BAAA,SAAS,EAAE,kBAAkB;AAC7B,4BAAA,MAAM,EAAE,CAAC,0BAA0B,EAAE,gBAAgB,CAAC;4BACtD,OAAO,EAAE,CAAC,4BAA4B,CAAC;AAC1C,yBAAA;AACJ,qBAAA;AACJ,iBAAA;;;MC5BY,QAAQ,GAAG,CAAC,iBAAiB,EAAE,gBAAgB;;ACH5D;;AAEG;;;;"}
@@ -20,10 +20,10 @@ class TuiTreeChildren {
20
20
  static defaultHandler(item) {
21
21
  return Array.isArray(item) ? item : [];
22
22
  }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeChildren, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiTreeChildren, isStandalone: true, selector: "tui-tree[childrenHandler]", inputs: { childrenHandler: { classPropertyName: "childrenHandler", publicName: "childrenHandler", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
23
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeChildren, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
24
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiTreeChildren, isStandalone: true, selector: "tui-tree[childrenHandler]", inputs: { childrenHandler: { classPropertyName: "childrenHandler", publicName: "childrenHandler", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeChildren, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeChildren, decorators: [{
27
27
  type: Directive,
28
28
  args: [{ selector: 'tui-tree[childrenHandler]' }]
29
29
  }] });
@@ -80,10 +80,10 @@ class TuiTreeItemContent {
80
80
  onClick() {
81
81
  this.controller.toggle(this.context.$implicit);
82
82
  }
83
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeItemContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
84
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: TuiTreeItemContent, isStandalone: true, selector: "ng-component", host: { properties: { "class._expandable": "isExpandable" } }, ngImport: i0, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeItemContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
84
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.24", type: TuiTreeItemContent, isStandalone: true, selector: "ng-component", host: { properties: { "class._expandable": "isExpandable" } }, ngImport: i0, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
85
85
  }
86
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeItemContent, decorators: [{
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeItemContent, decorators: [{
87
87
  type: Component,
88
88
  args: [{ imports: [NgTemplateOutlet, TuiButton], changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class._expandable]': 'isExpandable' }, template: "@if (isExpandable) {\n <button\n appearance=\"flat\"\n size=\"xs\"\n tuiIconButton\n type=\"button\"\n class=\"t-button\"\n [class.t-button_expanded]=\"context.$implicit.expanded()\"\n [iconStart]=\"icons.more\"\n [style.border-radius.%]=\"100\"\n (click)=\"onClick()\"\n >\n {{ more() }}\n </button>\n}\n<ng-container [ngTemplateOutlet]=\"context.template\" />\n", styles: [":host{display:flex;align-items:center}:host :host-context(tui-tree-item._expandable):not(._expandable){padding-inline-start:2rem}.t-button{transition-property:transform;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;margin-inline-end:.5rem}.t-button_expanded{transform:rotate(90deg)}\n"] }]
89
89
  }] });
@@ -116,8 +116,8 @@ class TuiTreeItem {
116
116
  checkChanges() {
117
117
  this.change$.next();
118
118
  }
119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
120
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: TuiTreeItem, isStandalone: true, selector: "tui-tree-item", host: { attributes: { "role": "treeitem" }, properties: { "class._expandable": "isExpandable" } }, providers: [
119
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeItem, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
120
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.24", type: TuiTreeItem, isStandalone: true, selector: "tui-tree-item", host: { attributes: { "role": "treeitem" }, properties: { "class._expandable": "isExpandable" } }, providers: [
121
121
  tuiProvide(TUI_TREE_NODE, TuiTreeItem),
122
122
  {
123
123
  provide: TUI_TREE_LEVEL,
@@ -126,7 +126,7 @@ class TuiTreeItem {
126
126
  },
127
127
  ], queries: [{ propertyName: "nested", predicate: TUI_TREE_NODE, isSignal: true }], ngImport: i0, template: "<ng-template #template>\n <ng-content />\n</ng-template>\n<ng-container *polymorpheusOutlet=\"content as text; context: {$implicit: this, template: template}\">\n {{ text }}\n</ng-container>\n@if (isExpandable) {\n <tui-expand\n role=\"group\"\n class=\"t-children\"\n [expanded]=\"expanded()\"\n >\n <div>\n <ng-content select=\"tui-tree-item\" />\n <ng-content select=\"tui-tree\" />\n </div>\n </tui-expand>\n}\n@if (attached()) {}\n", styles: [":host{display:block}.t-children{position:relative;margin-inline-start:var(--tui-tree-item-indent, 1.5rem)}\n"], dependencies: [{ kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiExpand, selector: "tui-expand", inputs: ["expanded"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
128
128
  }
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeItem, decorators: [{
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeItem, decorators: [{
130
130
  type: Component,
131
131
  args: [{ selector: 'tui-tree-item', imports: [PolymorpheusOutlet, TuiExpand], changeDetection: ChangeDetectionStrategy.OnPush, providers: [
132
132
  tuiProvide(TUI_TREE_NODE, TuiTreeItem),
@@ -155,10 +155,10 @@ class TuiTreeNode {
155
155
  ngOnDestroy() {
156
156
  this.directive?.unregister(this.component);
157
157
  }
158
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeNode, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
159
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiTreeNode, isStandalone: true, selector: "tui-tree-item[tuiTreeNode]", inputs: { value: { classPropertyName: "value", publicName: "tuiTreeNode", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
158
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeNode, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
159
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiTreeNode, isStandalone: true, selector: "tui-tree-item[tuiTreeNode]", inputs: { value: { classPropertyName: "value", publicName: "tuiTreeNode", isSignal: true, isRequired: true, transformFunction: null } }, usesOnChanges: true, ngImport: i0 }); }
160
160
  }
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeNode, decorators: [{
161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeNode, decorators: [{
162
162
  type: Directive,
163
163
  args: [{ selector: 'tui-tree-item[tuiTreeNode]' }]
164
164
  }] });
@@ -187,10 +187,10 @@ class TuiTreeComponent {
187
187
  get handler() {
188
188
  return this.directive?.childrenHandler() || TuiTreeChildren.defaultHandler;
189
189
  }
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
191
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.21", type: TuiTreeComponent, isStandalone: true, selector: "tui-tree", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tree" } }, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], viewQueries: [{ propertyName: "item", first: true, predicate: TuiTreeItem, descendants: true, isSignal: true }, { propertyName: "child", first: true, predicate: TuiTreeComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<tui-tree-item\n #view\n [tuiTreeNode]=\"value()\"\n>\n @if (value() !== children()) {\n <ng-container *polymorpheusOutlet=\"content() as text; context: {$implicit: value(), node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children(); track trackBy()($index, child)) {\n <tui-tree\n [content]=\"content()\"\n [trackBy]=\"trackBy()\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"], dependencies: [{ kind: "component", type: TuiTreeComponent, selector: "tui-tree", inputs: ["value", "trackBy", "content"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiTreeItem, selector: "tui-tree-item" }, { kind: "directive", type: TuiTreeNode, selector: "tui-tree-item[tuiTreeNode]", inputs: ["tuiTreeNode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
190
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
191
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.24", type: TuiTreeComponent, isStandalone: true, selector: "tui-tree", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null }, content: { classPropertyName: "content", publicName: "content", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tree" } }, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], viewQueries: [{ propertyName: "item", first: true, predicate: TuiTreeItem, descendants: true, isSignal: true }, { propertyName: "child", first: true, predicate: TuiTreeComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<tui-tree-item\n #view\n [tuiTreeNode]=\"value()\"\n>\n @if (value() !== children()) {\n <ng-container *polymorpheusOutlet=\"content() as text; context: {$implicit: value(), node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children(); track trackBy()($index, child)) {\n <tui-tree\n [content]=\"content()\"\n [trackBy]=\"trackBy()\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"], dependencies: [{ kind: "component", type: TuiTreeComponent, selector: "tui-tree", inputs: ["value", "trackBy", "content"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "component", type: TuiTreeItem, selector: "tui-tree-item" }, { kind: "directive", type: TuiTreeNode, selector: "tui-tree-item[tuiTreeNode]", inputs: ["tuiTreeNode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
192
192
  }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeComponent, decorators: [{
193
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeComponent, decorators: [{
194
194
  type: Component,
195
195
  args: [{ selector: 'tui-tree', imports: [PolymorpheusOutlet, TuiTreeItem, TuiTreeNode], changeDetection: ChangeDetectionStrategy.OnPush, providers: [tuiProvide(TUI_TREE_NODE, TuiTreeComponent)], host: { role: 'tree' }, template: "<tui-tree-item\n #view\n [tuiTreeNode]=\"value()\"\n>\n @if (value() !== children()) {\n <ng-container *polymorpheusOutlet=\"content() as text; context: {$implicit: value(), node: view}\">\n {{ text }}\n </ng-container>\n }\n @for (child of children(); track trackBy()($index, child)) {\n <tui-tree\n [content]=\"content()\"\n [trackBy]=\"trackBy()\"\n [value]=\"child\"\n />\n }\n</tui-tree-item>\n", styles: [":host{position:relative;display:block}\n"] }]
196
196
  }] });
@@ -221,13 +221,13 @@ class TuiTreeControllerDirective {
221
221
  this.toggled.emit(value);
222
222
  this.map().set(value, !expanded);
223
223
  }
224
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeControllerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
225
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiTreeControllerDirective, isStandalone: true, selector: "[tuiTreeController][map]", inputs: { fallback: { classPropertyName: "fallback", publicName: "tuiTreeController", isSignal: true, isRequired: false, transformFunction: null }, map: { classPropertyName: "map", publicName: "map", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggled: "toggled" }, providers: [
224
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeControllerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
225
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiTreeControllerDirective, isStandalone: true, selector: "[tuiTreeController][map]", inputs: { fallback: { classPropertyName: "fallback", publicName: "tuiTreeController", isSignal: true, isRequired: false, transformFunction: null }, map: { classPropertyName: "map", publicName: "map", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { toggled: "toggled" }, providers: [
226
226
  tuiProvide(TUI_TREE_ACCESSOR, TuiTreeControllerDirective),
227
227
  tuiProvide(TUI_TREE_CONTROLLER, TuiTreeControllerDirective),
228
228
  ], exportAs: ["tuiTreeController"], ngImport: i0 }); }
229
229
  }
230
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeControllerDirective, decorators: [{
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeControllerDirective, decorators: [{
231
231
  type: Directive,
232
232
  args: [{
233
233
  selector: '[tuiTreeController][map]',
@@ -250,10 +250,10 @@ class TuiTreeItemController {
250
250
  toggle(item) {
251
251
  this.map.set(item, !this.isExpanded(item));
252
252
  }
253
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeItemController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
254
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiTreeItemController, isStandalone: true, selector: "[tuiTreeController]:not([map])", inputs: { fallback: { classPropertyName: "fallback", publicName: "tuiTreeController", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiProvide(TUI_TREE_CONTROLLER, TuiTreeItemController)], exportAs: ["tuiTreeController"], ngImport: i0 }); }
253
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeItemController, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
254
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiTreeItemController, isStandalone: true, selector: "[tuiTreeController]:not([map])", inputs: { fallback: { classPropertyName: "fallback", publicName: "tuiTreeController", isSignal: true, isRequired: false, transformFunction: null } }, providers: [tuiProvide(TUI_TREE_CONTROLLER, TuiTreeItemController)], exportAs: ["tuiTreeController"], ngImport: i0 }); }
255
255
  }
256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeItemController, decorators: [{
256
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeItemController, decorators: [{
257
257
  type: Directive,
258
258
  args: [{
259
259
  selector: '[tuiTreeController]:not([map])',
@@ -281,10 +281,10 @@ class TuiTreeService {
281
281
  this.map.set(item, [this.loading]);
282
282
  this.load$.next(item);
283
283
  }
284
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
285
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeService }); }
284
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
285
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeService }); }
286
286
  }
287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiTreeService, decorators: [{
287
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiTreeService, decorators: [{
288
288
  type: Injectable
289
289
  }] });
290
290
 
@@ -11,10 +11,10 @@ class TuiAppearanceProxy {
11
11
  this.m = tuiAppearanceMode(this.a.tuiAppearanceMode, O);
12
12
  this.s = tuiAppearanceState(this.a.tuiAppearanceState, O);
13
13
  }
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiAppearanceProxy, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.21", type: TuiAppearanceProxy, isStandalone: true, hostDirectives: [{ directive: i1.TuiAppearance }], ngImport: i0 }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiAppearanceProxy, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
15
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.24", type: TuiAppearanceProxy, isStandalone: true, hostDirectives: [{ directive: i1.TuiAppearance }], ngImport: i0 }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiAppearanceProxy, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiAppearanceProxy, decorators: [{
18
18
  type: Directive,
19
19
  args: [{ hostDirectives: [TuiAppearance] }]
20
20
  }] });
@@ -5,22 +5,22 @@ import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
5
5
  import { TUI_FONT_OFFSET } from '@taiga-ui/core/utils/miscellaneous';
6
6
 
7
7
  class Styles {
8
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.21", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-button-group-5.10.0-canary.ed6b235"], ngImport: i0, template: '', isInline: true, styles: ["[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) tui-elastic-container{transition-property:background,height,border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border-radius:var(--tui-radius-xl);overflow:hidden}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) tui-elastic-container .t-wrapper{display:flex;justify-content:center}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) tui-elastic-container{inline-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;border:none;outline:none;background:transparent;align-items:center;flex:1;flex-direction:column;padding:1.125rem .25rem;gap:.5rem;font:var(--tui-typography-ui-s);min-block-size:var(--tui-height-l);max-inline-size:calc(50% - 1.75rem);cursor:pointer;color:var(--tui-text-action);text-align:center;text-decoration:none;clip-path:inset(0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:first-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:first-child{clip-path:inset(0 0 0 -10rem)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:last-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:last-child{clip-path:inset(0 -10rem 0 0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:active,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:active{background:var(--tui-background-neutral-1)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:after{position:absolute;inset-block-start:0;background:inherit;inline-size:1.75rem;block-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:first-child:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:first-child:before{content:\"\";inset-inline-start:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:last-child:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:last-child:after{content:\"\";inset-inline-end:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button tui-icon,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a tui-icon{font-size:1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):has(:is(button,a):only-child){border-radius:1rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:only-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:only-child{inline-size:100%;flex-direction:row;font:var(--tui-typography-ui-l);max-inline-size:100%;justify-content:center;padding-block:0}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._stack:not(:has(:is(button,a):only-child)){flex-direction:column;padding:.5rem 0}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._stack:not(:has(:is(button,a):only-child)) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._stack:not(:has(:is(button,a):only-child)) a{min-block-size:var(--tui-height-m);max-inline-size:100%;flex-direction:row;padding:0 1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
8
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
9
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.24", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-button-group-5.11.0"], ngImport: i0, template: '', isInline: true, styles: ["[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) tui-elastic-container{transition-property:background,height,border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border-radius:var(--tui-radius-xl);overflow:hidden}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) tui-elastic-container .t-wrapper{display:flex;justify-content:center}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) tui-elastic-container{inline-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;border:none;outline:none;background:transparent;align-items:center;flex:1;flex-direction:column;padding:1.125rem .25rem;gap:.5rem;font:var(--tui-typography-ui-s);min-block-size:var(--tui-height-l);max-inline-size:calc(50% - 1.75rem);cursor:pointer;color:var(--tui-text-action);text-align:center;text-decoration:none;clip-path:inset(0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:first-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:first-child{clip-path:inset(0 0 0 -10rem)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:last-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:last-child{clip-path:inset(0 -10rem 0 0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:active,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:active{background:var(--tui-background-neutral-1)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:after{position:absolute;inset-block-start:0;background:inherit;inline-size:1.75rem;block-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:first-child:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:first-child:before{content:\"\";inset-inline-start:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:last-child:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:last-child:after{content:\"\";inset-inline-end:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button tui-icon,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a tui-icon{font-size:1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]):has(:is(button,a):only-child){border-radius:1rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:only-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:only-child{inline-size:100%;flex-direction:row;font:var(--tui-typography-ui-l);max-inline-size:100%;justify-content:center;padding-block:0}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"])._stack:not(:has(:is(button,a):only-child)){flex-direction:column;padding:.5rem 0}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"])._stack:not(:has(:is(button,a):only-child)) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"])._stack:not(:has(:is(button,a):only-child)) a{min-block-size:var(--tui-height-m);max-inline-size:100%;flex-direction:row;padding:0 1rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
10
10
  }
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: Styles, decorators: [{
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: Styles, decorators: [{
12
12
  type: Component,
13
- args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-button-group-${TUI_VERSION}`, styles: ["[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) tui-elastic-container{transition-property:background,height,border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border-radius:var(--tui-radius-xl);overflow:hidden}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) tui-elastic-container .t-wrapper{display:flex;justify-content:center}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) tui-elastic-container{inline-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;border:none;outline:none;background:transparent;align-items:center;flex:1;flex-direction:column;padding:1.125rem .25rem;gap:.5rem;font:var(--tui-typography-ui-s);min-block-size:var(--tui-height-l);max-inline-size:calc(50% - 1.75rem);cursor:pointer;color:var(--tui-text-action);text-align:center;text-decoration:none;clip-path:inset(0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:first-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:first-child{clip-path:inset(0 0 0 -10rem)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:last-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:last-child{clip-path:inset(0 -10rem 0 0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:active,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:active{background:var(--tui-background-neutral-1)}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:after{position:absolute;inset-block-start:0;background:inherit;inline-size:1.75rem;block-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:first-child:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:first-child:before{content:\"\";inset-inline-start:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:last-child:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:last-child:after{content:\"\";inset-inline-end:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button tui-icon,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a tui-icon{font-size:1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):has(:is(button,a):only-child){border-radius:1rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) button:only-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]) a:only-child{inline-size:100%;flex-direction:row;font:var(--tui-typography-ui-l);max-inline-size:100%;justify-content:center;padding-block:0}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._stack:not(:has(:is(button,a):only-child)){flex-direction:column;padding:.5rem 0}[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._stack:not(:has(:is(button,a):only-child)) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._stack:not(:has(:is(button,a):only-child)) a{min-block-size:var(--tui-height-m);max-inline-size:100%;flex-direction:row;padding:0 1rem}\n"] }]
13
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-button-group-${TUI_VERSION}`, styles: ["[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) tui-elastic-container{transition-property:background,height,border-radius;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;border-radius:var(--tui-radius-xl);overflow:hidden}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]),[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) tui-elastic-container .t-wrapper{display:flex;justify-content:center}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) tui-elastic-container{inline-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a{transition-property:background;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;position:relative;display:flex;border:none;outline:none;background:transparent;align-items:center;flex:1;flex-direction:column;padding:1.125rem .25rem;gap:.5rem;font:var(--tui-typography-ui-s);min-block-size:var(--tui-height-l);max-inline-size:calc(50% - 1.75rem);cursor:pointer;color:var(--tui-text-action);text-align:center;text-decoration:none;clip-path:inset(0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:first-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:first-child{clip-path:inset(0 0 0 -10rem)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:last-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:last-child{clip-path:inset(0 -10rem 0 0)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:active,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:active{background:var(--tui-background-neutral-1)}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:after{position:absolute;inset-block-start:0;background:inherit;inline-size:1.75rem;block-size:100%}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:first-child:before,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:first-child:before{content:\"\";inset-inline-start:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:last-child:after,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:last-child:after{content:\"\";inset-inline-end:-1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button tui-icon,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a tui-icon{font-size:1.75rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]):has(:is(button,a):only-child){border-radius:1rem}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) button:only-child,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"]) a:only-child{inline-size:100%;flex-direction:row;font:var(--tui-typography-ui-l);max-inline-size:100%;justify-content:center;padding-block:0}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"])._stack:not(:has(:is(button,a):only-child)){flex-direction:column;padding:.5rem 0}[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"])._stack:not(:has(:is(button,a):only-child)) button,[tuiButtonGroup]:where(*[data-tui-version=\"5.11.0\"])._stack:not(:has(:is(button,a):only-child)) a{min-block-size:var(--tui-height-m);max-inline-size:100%;flex-direction:row;padding:0 1rem}\n"] }]
14
14
  }] });
15
15
  class TuiButtonGroup {
16
16
  constructor() {
17
17
  this.offset = inject(TUI_FONT_OFFSET);
18
18
  this.nothing = tuiWithStyles(Styles);
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.21", type: TuiButtonGroup, isStandalone: true, selector: "[tuiButtonGroup]", host: { attributes: { "data-tui-version": "5.10.0-canary.ed6b235" }, properties: { "class._stack": "offset() > 10" } }, ngImport: i0 }); }
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiButtonGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
21
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.24", type: TuiButtonGroup, isStandalone: true, selector: "[tuiButtonGroup]", host: { attributes: { "data-tui-version": "5.11.0" }, properties: { "class._stack": "offset() > 10" } }, ngImport: i0 }); }
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiButtonGroup, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiButtonGroup, decorators: [{
24
24
  type: Directive,
25
25
  args: [{
26
26
  selector: '[tuiButtonGroup]',
@@ -1 +1 @@
1
- {"version":3,"file":"taiga-ui-kit-directives-button-group.mjs","sources":["../../../projects/kit/directives/button-group/button-group.directive.ts","../../../projects/kit/directives/button-group/taiga-ui-kit-directives-button-group.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_FONT_OFFSET} from '@taiga-ui/core/utils/miscellaneous';\n\n@Component({\n template: '',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './button-group.style.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n exportAs: `tui-button-group-${TUI_VERSION}`,\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiButtonGroup]',\n host: {'data-tui-version': TUI_VERSION, '[class._stack]': 'offset() > 10'},\n})\nexport class TuiButtonGroup {\n protected readonly offset = inject(TUI_FONT_OFFSET);\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAWA,MAWM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA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AE,eAAe,EAAC;AAC7E,iBAAA;;;AC3BD;;AAEG;;;;"}
1
+ {"version":3,"file":"taiga-ui-kit-directives-button-group.mjs","sources":["../../../projects/kit/directives/button-group/button-group.directive.ts","../../../projects/kit/directives/button-group/taiga-ui-kit-directives-button-group.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport {TUI_VERSION} from '@taiga-ui/cdk/constants';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TUI_FONT_OFFSET} from '@taiga-ui/core/utils/miscellaneous';\n\n@Component({\n template: '',\n styles: `\n [data-tui-version='${TUI_VERSION}'] {\n @import './button-group.style.less';\n }\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n exportAs: `tui-button-group-${TUI_VERSION}`,\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiButtonGroup]',\n host: {'data-tui-version': TUI_VERSION, '[class._stack]': 'offset() > 10'},\n})\nexport class TuiButtonGroup {\n protected readonly offset = inject(TUI_FONT_OFFSET);\n protected readonly nothing = tuiWithStyles(Styles);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAWA,MAWM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,+GAVE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,81GAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAUV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAXX,SAAS;+BACI,EAAE,EAAA,aAAA,EAMG,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EACrC,CAAA,iBAAA,EAAoB,WAAW,CAAA,CAAE,EAAA,MAAA,EAAA,CAAA,81GAAA,CAAA,EAAA;;MAQlC,cAAc,CAAA;AAJ3B,IAAA,WAAA,GAAA;AAKuB,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC;AAChC,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;AACrD,IAAA;+GAHY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,kBAAkB;oBAC5B,IAAI,EAAE,EAAC,kBAAkB,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAC;AAC7E,iBAAA;;;AC3BD;;AAEG;;;;"}
@@ -27,14 +27,14 @@ class TuiButtonSelect extends TuiControl {
27
27
  this.open.set(false);
28
28
  }
29
29
  }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiButtonSelect, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
31
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.21", type: TuiButtonSelect, isStandalone: true, selector: "button[tuiButtonSelect]", providers: [
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiButtonSelect, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
31
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.24", type: TuiButtonSelect, isStandalone: true, selector: "button[tuiButtonSelect]", providers: [
32
32
  tuiAsOptionContent(TuiSelectOption),
33
33
  tuiAsDataListHost(TuiButtonSelect),
34
34
  tuiDropdownOptionsProvider({ align: 'end' }),
35
35
  ], usesInheritance: true, hostDirectives: [{ directive: i1.TuiDropdownDirective }, { directive: i2.TuiNativeValidator }, { directive: i1.TuiWithDropdownOpen }], ngImport: i0 }); }
36
36
  }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiButtonSelect, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiButtonSelect, decorators: [{
38
38
  type: Directive,
39
39
  args: [{
40
40
  selector: 'button[tuiButtonSelect]',
@@ -11,12 +11,12 @@ const TUI_CHEVRON = new InjectionToken(ngDevMode ? 'TUI_CHEVRON' : '', {
11
11
  factory: () => '@tui.chevron-down',
12
12
  });
13
13
  class Styles {
14
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.21", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-chevron-5.10.0-canary.ed6b235"], ngImport: i0, template: '', isInline: true, styles: ["[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):before{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;cursor:pointer;font-size:1rem}[tuiButton][data-size=m][tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after{margin-inline-end:-.125rem}[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._chevron-rotated:after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._chevron-rotated:before{transform:rotate(180deg)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]){--t-stroke: var(--tui-stroke-width)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after{transform:rotate(0) scale(calc(2 / 3));font-size:1.5rem;--tui-stroke-width: calc(var(--t-stroke) / 2 * 3)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._chevron-rotated:after{transform:rotate(180deg) scale(calc(2 / 3))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
14
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
15
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.24", type: Styles, isStandalone: true, selector: "ng-component", exportAs: ["tui-chevron-5.11.0"], ngImport: i0, template: '', isInline: true, styles: ["[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]):after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.11.0\"]):before{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;cursor:pointer;font-size:1rem}[tuiButton][data-size=m][tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]):after{margin-inline-end:-.125rem}[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"])._chevron-rotated:after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.11.0\"])._chevron-rotated:before{transform:rotate(180deg)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]){--t-stroke: var(--tui-stroke-width)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]):after{transform:rotate(0) scale(calc(2 / 3));font-size:1.5rem;--tui-stroke-width: calc(var(--t-stroke) / 2 * 3)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"])._chevron-rotated:after{transform:rotate(180deg) scale(calc(2 / 3))}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
16
16
  }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: Styles, decorators: [{
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: Styles, decorators: [{
18
18
  type: Component,
19
- args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-chevron-${TUI_VERSION}`, styles: ["[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):before{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;cursor:pointer;font-size:1rem}[tuiButton][data-size=m][tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after{margin-inline-end:-.125rem}[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._chevron-rotated:after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._chevron-rotated:before{transform:rotate(180deg)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]){--t-stroke: var(--tui-stroke-width)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"]):after{transform:rotate(0) scale(calc(2 / 3));font-size:1.5rem;--tui-stroke-width: calc(var(--t-stroke) / 2 * 3)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.10.0-canary.ed6b235\"])._chevron-rotated:after{transform:rotate(180deg) scale(calc(2 / 3))}\n"] }]
19
+ args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: `tui-chevron-${TUI_VERSION}`, styles: ["[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]):after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.11.0\"]):before{transition-property:transform,color;transition-duration:var(--tui-duration, .3s);transition-timing-function:ease-in-out;cursor:pointer;font-size:1rem}[tuiButton][data-size=m][tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]):after{margin-inline-end:-.125rem}[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"])._chevron-rotated:after,tui-icon[tuiChevron]:where(*[data-tui-version=\"5.11.0\"])._chevron-rotated:before{transform:rotate(180deg)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]){--t-stroke: var(--tui-stroke-width)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"]):after{transform:rotate(0) scale(calc(2 / 3));font-size:1.5rem;--tui-stroke-width: calc(var(--t-stroke) / 2 * 3)}tui-textfield[tuiChevron][tuiIcons]:where(*[data-tui-version=\"5.11.0\"])._chevron-rotated:after{transform:rotate(180deg) scale(calc(2 / 3))}\n"] }]
20
20
  }] });
21
21
  class TuiChevron {
22
22
  constructor() {
@@ -26,10 +26,10 @@ class TuiChevron {
26
26
  this.toggle = effect(() => this.el.classList.toggle('_chevron-rotated', this.rotated() || (this.rotated() === '' && !!this.dropdown?.ref())));
27
27
  this.rotated = input('', { alias: 'tuiChevron' });
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiChevron, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
30
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.21", type: TuiChevron, isStandalone: true, selector: "[tuiChevron]", inputs: { rotated: { classPropertyName: "rotated", publicName: "tuiChevron", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiChevron": "" } }, providers: [tuiProvide(TUI_ICON_END, TUI_CHEVRON)], ngImport: i0 }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiChevron, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
30
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.24", type: TuiChevron, isStandalone: true, selector: "[tuiChevron]", inputs: { rotated: { classPropertyName: "rotated", publicName: "tuiChevron", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "tuiChevron": "" } }, providers: [tuiProvide(TUI_ICON_END, TUI_CHEVRON)], ngImport: i0 }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: TuiChevron, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.24", ngImport: i0, type: TuiChevron, decorators: [{
33
33
  type: Directive,
34
34
  args: [{
35
35
  selector: '[tuiChevron]',