@taiga-ui/core 4.52.0-canary.a59c4d0 → 4.52.0-canary.b61d3d0

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 (123) hide show
  1. package/components/alert/alert.component.d.ts +3 -3
  2. package/components/alert/alert.interfaces.d.ts +2 -3
  3. package/components/alert/alert.service.d.ts +3 -2
  4. package/components/alert/alert.tokens.d.ts +1 -7
  5. package/components/alert/index.d.ts +0 -1
  6. package/components/data-list/data-list.component.d.ts +1 -1
  7. package/components/dialog/dialog.component.d.ts +1 -1
  8. package/components/dialog/dialog.directive.d.ts +4 -3
  9. package/components/dialog/dialog.service.d.ts +5 -2
  10. package/components/error/error.component.d.ts +1 -1
  11. package/components/index.d.ts +1 -0
  12. package/components/link/link.directive.d.ts +2 -2
  13. package/components/loader/loader.component.d.ts +7 -7
  14. package/components/modal/index.d.ts +2 -0
  15. package/components/modal/modal.component.d.ts +17 -0
  16. package/components/modal/modal.service.d.ts +13 -0
  17. package/components/notification/notification.directive.d.ts +7 -11
  18. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  19. package/components/scrollbar/scrollbar.component.d.ts +2 -2
  20. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  21. package/components/spin-button/spin-button.component.d.ts +8 -9
  22. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +2 -2
  23. package/components/textfield/textfield.component.d.ts +4 -5
  24. package/components/textfield/textfield.directive.d.ts +10 -13
  25. package/components/textfield/textfield.options.d.ts +8 -11
  26. package/directives/date-format/date-format.directive.d.ts +3 -7
  27. package/directives/dropdown/dropdown.directive.d.ts +1 -2
  28. package/directives/hint/hint-describe.directive.d.ts +4 -6
  29. package/directives/hint/hint-host.directive.d.ts +2 -2
  30. package/directives/hint/hint-hover.directive.d.ts +3 -4
  31. package/directives/hint/hint-manual.directive.d.ts +2 -2
  32. package/directives/hint/hint-overflow.directive.d.ts +2 -2
  33. package/directives/hint/hint-position.directive.d.ts +4 -5
  34. package/directives/hint/hint-unstyled.component.d.ts +2 -7
  35. package/directives/hint/hint.component.d.ts +7 -6
  36. package/directives/hint/hint.directive.d.ts +9 -11
  37. package/directives/hint/index.d.ts +0 -2
  38. package/directives/index.d.ts +1 -0
  39. package/directives/notification/index.d.ts +2 -0
  40. package/directives/notification/notification.directive.d.ts +11 -0
  41. package/directives/notification/notification.service.d.ts +12 -0
  42. package/directives/number-format/number-format.directive.d.ts +3 -7
  43. package/fesm2022/taiga-ui-core-components-alert.mjs +40 -93
  44. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-core-components-calendar.mjs +7 -8
  46. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-core-components-data-list.mjs +4 -11
  48. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-core-components-dialog.mjs +31 -20
  50. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-core-components-error.mjs +2 -2
  52. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-core-components-icon.mjs +1 -2
  54. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-core-components-link.mjs +5 -7
  56. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-core-components-loader.mjs +12 -25
  58. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-core-components-modal.mjs +89 -0
  60. package/fesm2022/taiga-ui-core-components-modal.mjs.map +1 -0
  61. package/fesm2022/taiga-ui-core-components-notification.mjs +12 -27
  62. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-core-components-root.mjs +3 -5
  64. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +35 -43
  66. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-core-components-spin-button.mjs +14 -27
  68. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-core-components-textfield.mjs +52 -102
  70. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-core-components.mjs +1 -0
  72. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-core-directives-appearance.mjs +0 -1
  74. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-core-directives-date-format.mjs +24 -18
  76. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +3 -22
  78. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-core-directives-hint.mjs +94 -183
  80. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-core-directives-icons.mjs +0 -1
  82. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +2 -5
  84. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-core-directives-notification.mjs +73 -0
  86. package/fesm2022/taiga-ui-core-directives-notification.mjs.map +1 -0
  87. package/fesm2022/taiga-ui-core-directives-number-format.mjs +30 -18
  88. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-core-directives-popup.mjs +2 -3
  90. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-core-directives.mjs +1 -0
  92. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -1
  94. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -1
  96. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -1
  98. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -1
  100. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +2 -2
  102. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -1
  104. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-core-pipes-month.mjs +2 -2
  106. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -1
  108. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-core-tokens.mjs +18 -8
  110. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +1 -1
  112. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  113. package/package.json +9 -1
  114. package/styles/mixins/mixins.less +0 -8
  115. package/styles/mixins/mixins.scss +0 -8
  116. package/tokens/date-format.d.ts +2 -3
  117. package/tokens/i18n.d.ts +7 -7
  118. package/tokens/number-format.d.ts +2 -3
  119. package/types/index.d.ts +0 -1
  120. package/components/alert/alerts.component.d.ts +0 -12
  121. package/directives/hint/hint.service.d.ts +0 -13
  122. package/directives/hint/hints.component.d.ts +0 -12
  123. package/types/portal-item.d.ts +0 -9
@@ -164,11 +164,3 @@
164
164
  @mixin tui-mask($x, $y, $r) {
165
165
  mask: radial-gradient(circle at $x $y, transparent $r, black $r);
166
166
  }
167
-
168
- @mixin portal-loop($n) {
169
- @for $i from 1 through $n {
170
- &:nth-of-type(#{$i}) {
171
- grid-row: #{$i + 10000};
172
- }
173
- }
174
- }
@@ -1,6 +1,5 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
1
+ import { InjectionToken, type Provider, type Signal } from '@angular/core';
2
2
  import { type TuiDateMode } from '@taiga-ui/cdk/date-time';
3
- import { type Observable } from 'rxjs';
4
3
  /**
5
4
  * Formatting configuration for displayed dates
6
5
  */
@@ -19,5 +18,5 @@ export declare const TUI_DEFAULT_DATE_FORMAT: TuiDateFormatSettings;
19
18
  /**
20
19
  * Formatting configuration for displayed dates
21
20
  */
22
- export declare const TUI_DATE_FORMAT: InjectionToken<Observable<TuiDateFormatSettings>>;
21
+ export declare const TUI_DATE_FORMAT: InjectionToken<Signal<TuiDateFormatSettings>>;
23
22
  export declare function tuiDateFormatProvider(options: Partial<TuiDateFormatSettings>): Provider;
package/tokens/i18n.d.ts CHANGED
@@ -2,28 +2,28 @@ import { InjectionToken } from '@angular/core';
2
2
  /**
3
3
  * Localized months names
4
4
  */
5
- export declare const TUI_MONTHS: InjectionToken<import("rxjs").Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
5
+ export declare const TUI_MONTHS: InjectionToken<import("@angular/core").Signal<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
6
6
  /**
7
7
  * i18n 'close' word
8
8
  */
9
- export declare const TUI_CLOSE_WORD: InjectionToken<import("rxjs").Observable<string>>;
9
+ export declare const TUI_CLOSE_WORD: InjectionToken<import("@angular/core").Signal<string>>;
10
10
  /**
11
11
  * i18n 'clear' word
12
12
  */
13
- export declare const TUI_CLEAR_WORD: InjectionToken<import("rxjs").Observable<string>>;
13
+ export declare const TUI_CLEAR_WORD: InjectionToken<import("@angular/core").Signal<string>>;
14
14
  /**
15
15
  * i18n 'Nothing found' message
16
16
  */
17
- export declare const TUI_NOTHING_FOUND_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
17
+ export declare const TUI_NOTHING_FOUND_MESSAGE: InjectionToken<import("@angular/core").Signal<string>>;
18
18
  /**
19
19
  * i18n of error message
20
20
  */
21
- export declare const TUI_DEFAULT_ERROR_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
21
+ export declare const TUI_DEFAULT_ERROR_MESSAGE: InjectionToken<import("@angular/core").Signal<string>>;
22
22
  /**
23
23
  * spin i18n texts
24
24
  */
25
- export declare const TUI_SPIN_TEXTS: InjectionToken<import("rxjs").Observable<readonly [previous: string, next: string]>>;
25
+ export declare const TUI_SPIN_TEXTS: InjectionToken<import("@angular/core").Signal<readonly [previous: string, next: string]>>;
26
26
  /**
27
27
  * calendars i18n texts
28
28
  */
29
- export declare const TUI_SHORT_WEEK_DAYS: InjectionToken<import("rxjs").Observable<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
29
+ export declare const TUI_SHORT_WEEK_DAYS: InjectionToken<import("@angular/core").Signal<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
@@ -1,6 +1,5 @@
1
- import { InjectionToken, type Provider } from '@angular/core';
1
+ import { InjectionToken, type Provider, type Signal } from '@angular/core';
2
2
  import { type TuiRounding } from '@taiga-ui/cdk/types';
3
- import { type Observable } from 'rxjs';
4
3
  export type TuiDecimalMode = 'always' | 'not-zero' | 'pad';
5
4
  export type TuiDecimalSymbol = ',' | '.';
6
5
  /**
@@ -35,5 +34,5 @@ export declare const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings;
35
34
  /**
36
35
  * Formatting configuration for displayed numbers
37
36
  */
38
- export declare const TUI_NUMBER_FORMAT: InjectionToken<Observable<TuiNumberFormatSettings>>;
37
+ export declare const TUI_NUMBER_FORMAT: InjectionToken<Signal<TuiNumberFormatSettings>>;
39
38
  export declare function tuiNumberFormatProvider(options: Partial<TuiNumberFormatSettings>): Provider;
package/types/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export type * from './direction';
2
2
  export type * from './interactive-state';
3
3
  export type * from './orientation';
4
4
  export type * from './point';
5
- export type * from './portal-item';
6
5
  export type * from './range-state';
7
6
  export type * from './size';
8
7
  export type * from './value-content-context';
@@ -1,12 +0,0 @@
1
- import { Injector, type Type } from '@angular/core';
2
- import { type TuiMapper } from '@taiga-ui/cdk/types';
3
- import { identity } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class TuiAlerts {
6
- private readonly injector;
7
- protected readonly alerts$: import("rxjs").Observable<(readonly any[])[]>;
8
- protected readonly trackBy: typeof identity;
9
- protected readonly mapper: TuiMapper<[Type<any>], Injector>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiAlerts, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiAlerts, "tui-alerts", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,13 +0,0 @@
1
- import { type TuiPortalItem } from '@taiga-ui/core/types';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service for displaying hints/tooltips
6
- */
7
- export declare class TuiHintService extends BehaviorSubject<readonly TuiPortalItem[]> {
8
- constructor();
9
- add(directive: TuiPortalItem): void;
10
- remove(directive: TuiPortalItem): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<TuiHintService>;
13
- }
@@ -1,12 +0,0 @@
1
- import { type OnInit } from '@angular/core';
2
- import { type TuiPortalItem } from '@taiga-ui/core/types';
3
- import * as i0 from "@angular/core";
4
- export declare class TuiHints implements OnInit {
5
- private readonly hints$;
6
- private readonly destroyRef;
7
- private readonly cdr;
8
- protected hints: readonly TuiPortalItem[];
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiHints, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiHints, "tui-hints", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,9 +0,0 @@
1
- import { type TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
2
- import { type PolymorpheusComponent, type PolymorpheusContent } from '@taiga-ui/polymorpheus';
3
- export interface TuiPortalItem<C = any> {
4
- readonly activeZone?: TuiActiveZone | null;
5
- readonly appearance?: string;
6
- readonly component: PolymorpheusComponent<any>;
7
- readonly content: PolymorpheusContent<C>;
8
- readonly context?: C;
9
- }