@taiga-ui/core 5.23.0 → 5.24.0-canary.82f9053

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 (67) hide show
  1. package/components/textfield/select-like.directive.d.ts +2 -1
  2. package/components/textfield/textfield.component.d.ts +2 -0
  3. package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
  4. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  5. package/fesm2022/taiga-ui-core-components-cell.mjs +3 -3
  6. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  7. package/fesm2022/taiga-ui-core-components-checkbox.mjs +2 -2
  8. package/fesm2022/taiga-ui-core-components-checkbox.mjs.map +1 -1
  9. package/fesm2022/taiga-ui-core-components-data-list.mjs +4 -4
  10. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  11. package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
  12. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  13. package/fesm2022/taiga-ui-core-components-input.mjs +2 -1
  14. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -1
  15. package/fesm2022/taiga-ui-core-components-label.mjs +3 -3
  16. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
  18. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
  20. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-core-components-radio.mjs +2 -2
  22. package/fesm2022/taiga-ui-core-components-radio.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  24. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +5 -5
  26. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-core-components-textfield.mjs +25 -10
  28. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-core-components-title.mjs +3 -3
  30. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-core-directives-appearance.mjs +3 -3
  32. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-core-directives-group.mjs +3 -3
  34. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-core-directives-icons.mjs +3 -3
  36. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-core-portals-alert.mjs +3 -3
  38. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-core-portals-dialog.mjs +2 -2
  40. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-core-portals-dropdown.mjs +92 -23
  42. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-core-portals-hint.mjs +155 -78
  44. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-core-portals-modal.mjs +3 -3
  46. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-core-tokens.mjs +4 -2
  48. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  49. package/package.json +14 -14
  50. package/portals/dropdown/dropdown-anchor.directive.d.ts +2 -12
  51. package/portals/dropdown/dropdown-anchored.directive.d.ts +16 -0
  52. package/portals/dropdown/dropdown-context.directive.d.ts +5 -1
  53. package/portals/dropdown/dropdown-selection.directive.d.ts +5 -3
  54. package/portals/dropdown/dropdown.component.d.ts +2 -2
  55. package/portals/dropdown/dropdown.directive.d.ts +5 -4
  56. package/portals/dropdown/dropdown.providers.d.ts +1 -0
  57. package/portals/dropdown/index.d.ts +1 -0
  58. package/portals/hint/hint-anchor.directive.d.ts +8 -0
  59. package/portals/hint/hint-anchored.directive.d.ts +17 -0
  60. package/portals/hint/hint-host.directive.d.ts +4 -1
  61. package/portals/hint/hint-hover.directive.d.ts +1 -1
  62. package/portals/hint/hint-pointer.directive.d.ts +6 -1
  63. package/portals/hint/hint.component.d.ts +3 -10
  64. package/portals/hint/hint.directive.d.ts +5 -4
  65. package/portals/hint/index.d.ts +2 -0
  66. package/tokens/anchor-support.d.ts +2 -0
  67. package/tokens/index.d.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/core",
3
- "version": "5.23.0",
3
+ "version": "5.24.0-canary.82f9053",
4
4
  "description": "Core library for creating Angular components and applications using Taiga UI",
5
5
  "keywords": [
6
6
  "angular",
@@ -41,11 +41,11 @@
41
41
  "@ng-web-apis/intersection-observer": "^5.3.0",
42
42
  "@ng-web-apis/mutation-observer": "^5.3.0",
43
43
  "@ng-web-apis/platform": "^5.3.0",
44
- "@taiga-ui/cdk": "5.23.0",
44
+ "@taiga-ui/cdk": "5.24.0",
45
45
  "@taiga-ui/event-plugins": "^5.0.0",
46
- "@taiga-ui/i18n": "5.23.0",
46
+ "@taiga-ui/i18n": "5.24.0",
47
47
  "@taiga-ui/polymorpheus": "^5.0.1",
48
- "@taiga-ui/styles": "5.23.0",
48
+ "@taiga-ui/styles": "5.24.0",
49
49
  "rxjs": ">=7.0.0"
50
50
  },
51
51
  "schematics": "./schematics/collection.json",
@@ -179,17 +179,17 @@
179
179
  "types": "./components/title/index.d.ts",
180
180
  "default": "./fesm2022/taiga-ui-core-components-title.mjs"
181
181
  },
182
- "./directives/appearance": {
183
- "types": "./directives/appearance/index.d.ts",
184
- "default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
182
+ "./directives/date-format": {
183
+ "types": "./directives/date-format/index.d.ts",
184
+ "default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
185
185
  },
186
186
  "./directives/button-x": {
187
187
  "types": "./directives/button-x/index.d.ts",
188
188
  "default": "./fesm2022/taiga-ui-core-directives-button-x.mjs"
189
189
  },
190
- "./directives/date-format": {
191
- "types": "./directives/date-format/index.d.ts",
192
- "default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
190
+ "./directives/appearance": {
191
+ "types": "./directives/appearance/index.d.ts",
192
+ "default": "./fesm2022/taiga-ui-core-directives-appearance.mjs"
193
193
  },
194
194
  "./directives/group": {
195
195
  "types": "./directives/group/index.d.ts",
@@ -199,10 +199,6 @@
199
199
  "types": "./directives/icons/index.d.ts",
200
200
  "default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
201
201
  },
202
- "./directives/items-handlers": {
203
- "types": "./directives/items-handlers/index.d.ts",
204
- "default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
205
- },
206
202
  "./directives/number-format": {
207
203
  "types": "./directives/number-format/index.d.ts",
208
204
  "default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
@@ -215,6 +211,10 @@
215
211
  "types": "./pipes/format-number/index.d.ts",
216
212
  "default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
217
213
  },
214
+ "./directives/items-handlers": {
215
+ "types": "./directives/items-handlers/index.d.ts",
216
+ "default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
217
+ },
218
218
  "./portals/alert": {
219
219
  "types": "./portals/alert/index.d.ts",
220
220
  "default": "./fesm2022/taiga-ui-core-portals-alert.mjs"
@@ -1,16 +1,6 @@
1
- import { type AfterViewInit } from '@angular/core';
2
1
  import * as i0 from "@angular/core";
3
- export declare class TuiDropdownAnchor implements AfterViewInit {
4
- private readonly el;
5
- private readonly directive;
6
- private readonly accessor;
7
- private readonly viewport;
8
- private readonly vvs;
9
- private readonly options;
10
- private readonly position;
11
- private readonly styles$;
12
- ngAfterViewInit(): void;
13
- private getStyles;
2
+ export declare class TuiDropdownAnchor {
3
+ protected readonly anchor: string;
14
4
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownAnchor, never>;
15
5
  static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownAnchor, never, never, {}, {}, never, never, true, never>;
16
6
  }
@@ -0,0 +1,16 @@
1
+ import { type AfterViewInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TuiDropdownAnchored implements AfterViewInit {
4
+ private readonly el;
5
+ private readonly directive;
6
+ private readonly accessor;
7
+ private readonly viewport;
8
+ private readonly vvs;
9
+ private readonly options;
10
+ private readonly position;
11
+ private readonly styles$;
12
+ ngAfterViewInit(): void;
13
+ private getStyles;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownAnchored, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownAnchored, never, never, {}, {}, never, never, true, never>;
16
+ }
@@ -1,8 +1,9 @@
1
+ import { type AfterViewInit, type ElementRef, type OnDestroy } from '@angular/core';
1
2
  import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
2
3
  import { TuiRectAccessor } from '@taiga-ui/core/classes';
3
4
  import { TuiDropdownDriver } from './dropdown.driver';
4
5
  import * as i0 from "@angular/core";
5
- export declare class TuiDropdownContext extends TuiRectAccessor {
6
+ export declare class TuiDropdownContext extends TuiRectAccessor implements ElementRef<HTMLElement>, AfterViewInit, OnDestroy {
6
7
  private readonly isTouch;
7
8
  private currentRect;
8
9
  protected readonly userSelect: import("@angular/core").Signal<"none" | null>;
@@ -12,6 +13,9 @@ export declare class TuiDropdownContext extends TuiRectAccessor {
12
13
  protected readonly el: HTMLElement;
13
14
  protected readonly sub: import("rxjs").Subscription;
14
15
  readonly type = "dropdown";
16
+ readonly nativeElement: HTMLDivElement;
17
+ ngAfterViewInit(): void;
18
+ ngOnDestroy(): void;
15
19
  getClientRect(): DOMRect;
16
20
  protected onContextMenu(x: number, y: number): void;
17
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownContext, never>;
@@ -1,9 +1,9 @@
1
- import { type OnDestroy, ViewContainerRef } from '@angular/core';
1
+ import { type ElementRef, type OnDestroy, ViewContainerRef } from '@angular/core';
2
2
  import { type TuiBooleanHandler } from '@taiga-ui/cdk/types';
3
3
  import { TuiDriver, type TuiRectAccessor } from '@taiga-ui/core/classes';
4
4
  import { TuiDropdownDirective } from './dropdown.directive';
5
5
  import * as i0 from "@angular/core";
6
- export declare class TuiDropdownSelection extends TuiDriver implements TuiRectAccessor, OnDestroy {
6
+ export declare class TuiDropdownSelection extends TuiDriver implements ElementRef<HTMLElement>, TuiRectAccessor, OnDestroy {
7
7
  private ghost?;
8
8
  protected readonly doc: Document;
9
9
  protected readonly vcr: ViewContainerRef;
@@ -13,11 +13,12 @@ export declare class TuiDropdownSelection extends TuiDriver implements TuiRectAc
13
13
  protected readonly stream$: import("rxjs").Observable<boolean>;
14
14
  protected range: Range;
15
15
  readonly type = "dropdown";
16
+ readonly nativeElement: HTMLDivElement;
16
17
  readonly tuiDropdownSelection: import("@angular/core").InputSignal<string | TuiBooleanHandler<Range>>;
17
18
  readonly tuiDropdownSelectionPosition: import("@angular/core").InputSignal<"selection" | "tag" | "word">;
18
19
  constructor();
19
- getClientRect(): DOMRect;
20
20
  ngOnDestroy(): void;
21
+ getClientRect(): DOMRect;
21
22
  private get ghostHost();
22
23
  private getRange;
23
24
  /**
@@ -38,6 +39,7 @@ export declare class TuiDropdownSelection extends TuiDriver implements TuiRectAc
38
39
  */
39
40
  private initGhost;
40
41
  private isCaretVisible;
42
+ private updateAnchor;
41
43
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownSelection, never>;
42
44
  static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownSelection, "[tuiDropdownSelection]", never, { "tuiDropdownSelection": { "alias": "tuiDropdownSelection"; "required": false; "isSignal": true; }; "tuiDropdownSelectionPosition": { "alias": "tuiDropdownSelectionPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
43
45
  }
@@ -2,7 +2,7 @@ import { TuiDropdownDirective } from './dropdown.directive';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "@taiga-ui/cdk/directives/active-zone";
4
4
  import * as i2 from "@taiga-ui/cdk/directives/animated";
5
- import * as i3 from "./dropdown-anchor.directive";
5
+ import * as i3 from "./dropdown-anchored.directive";
6
6
  /**
7
7
  * @description:
8
8
  * This component is used to show template in a portal
@@ -18,5 +18,5 @@ export declare class TuiDropdownComponent {
18
18
  protected readonly theme: import("@angular/core").Signal<string | null | undefined>;
19
19
  protected readonly close: () => void;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDropdownComponent, "tui-dropdown", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiDropdownAnchor; inputs: {}; outputs: {}; }]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiDropdownComponent, "tui-dropdown", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiDropdownAnchored; inputs: {}; outputs: {}; }]>;
22
22
  }
@@ -3,9 +3,10 @@ import { type TuiContext } from '@taiga-ui/cdk/types';
3
3
  import { TuiRectAccessor, type TuiVehicle } from '@taiga-ui/core/classes';
4
4
  import { PolymorpheusComponent, type PolymorpheusContent, PolymorpheusTemplate } from '@taiga-ui/polymorpheus';
5
5
  import * as i0 from "@angular/core";
6
- import * as i1 from "./dropdown.driver";
7
- import * as i2 from "./dropdown-a11y.directive";
8
- import * as i3 from "./dropdown-position.directive";
6
+ import * as i1 from "./dropdown-anchor.directive";
7
+ import * as i2 from "./dropdown.driver";
8
+ import * as i3 from "./dropdown-a11y.directive";
9
+ import * as i4 from "./dropdown-position.directive";
9
10
  export declare class TuiDropdownDirective implements AfterViewChecked, OnDestroy, TuiRectAccessor, TuiVehicle {
10
11
  private readonly injector;
11
12
  private readonly refresh$;
@@ -26,5 +27,5 @@ export declare class TuiDropdownDirective implements AfterViewChecked, OnDestroy
26
27
  getClientRect(): DOMRect;
27
28
  toggle(show: boolean): void;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownDirective, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownDirective, "[tuiDropdown]:not(ng-container):not(ng-template)", ["tuiDropdown"], { "content": { "alias": "tuiDropdown"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.TuiDropdownDriverDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiDropdownA11y; inputs: { "tuiDropdownRole": "tuiDropdownRole"; }; outputs: {}; }, { directive: typeof i3.TuiDropdownPosition; inputs: {}; outputs: { "tuiDropdownDirectionChange": "tuiDropdownDirectionChange"; }; }]>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownDirective, "[tuiDropdown]:not(ng-container):not(ng-template)", ["tuiDropdown"], { "content": { "alias": "tuiDropdown"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.TuiDropdownAnchor; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiDropdownDriverDirective; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiDropdownA11y; inputs: { "tuiDropdownRole": "tuiDropdownRole"; }; outputs: {}; }, { directive: typeof i4.TuiDropdownPosition; inputs: {}; outputs: { "tuiDropdownDirectionChange": "tuiDropdownDirectionChange"; }; }]>;
30
31
  }
@@ -5,3 +5,4 @@ import { type ElementRef, InjectionToken, type Type } from '@angular/core';
5
5
  export declare const TUI_DROPDOWN_COMPONENT: InjectionToken<Type<any>>;
6
6
  export declare const TUI_DROPDOWN_CONTEXT: InjectionToken<Record<any, any>>;
7
7
  export declare const TUI_DROPDOWN_HOST: InjectionToken<ElementRef<Element>>;
8
+ export declare const TUI_DROPDOWN_ANCHOR: InjectionToken<ElementRef<Element>>;
@@ -5,6 +5,7 @@ export * from './dropdown.driver';
5
5
  export * from './dropdown.providers';
6
6
  export * from './dropdown-a11y.directive';
7
7
  export * from './dropdown-anchor.directive';
8
+ export * from './dropdown-anchored.directive';
8
9
  export * from './dropdown-close.directive';
9
10
  export * from './dropdown-content.directive';
10
11
  export * from './dropdown-context.directive';
@@ -0,0 +1,8 @@
1
+ import { ElementRef, InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare const TUI_HINT_ANCHOR: InjectionToken<ElementRef<Element>>;
4
+ export declare class TuiHintAnchor {
5
+ protected readonly anchor: string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintAnchor, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintAnchor, never, never, {}, {}, never, never, true, never>;
8
+ }
@@ -0,0 +1,17 @@
1
+ import { type AfterViewInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TuiHintAnchored implements AfterViewInit {
4
+ private readonly el;
5
+ private readonly hover;
6
+ private readonly vvs;
7
+ private readonly viewport;
8
+ private readonly accessor;
9
+ private readonly directive;
10
+ private readonly styles$;
11
+ protected readonly sub: import("rxjs").Subscription;
12
+ ngAfterViewInit(): void;
13
+ private update;
14
+ private apply;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintAnchored, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintAnchored, never, never, {}, {}, never, never, true, never>;
17
+ }
@@ -1,8 +1,11 @@
1
+ import { type ElementRef } from '@angular/core';
1
2
  import { TuiRectAccessor } from '@taiga-ui/core/classes';
2
3
  import * as i0 from "@angular/core";
3
- export declare class TuiHintHost extends TuiRectAccessor {
4
+ export declare class TuiHintHost extends TuiRectAccessor implements ElementRef<HTMLElement> {
4
5
  readonly tuiHintHost: import("@angular/core").InputSignal<HTMLElement | undefined>;
5
6
  readonly type = "hint";
7
+ nativeElement: HTMLElement;
8
+ protected readonly sync: import("@angular/core").EffectRef;
6
9
  getClientRect(): DOMRect;
7
10
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintHost, never>;
8
11
  static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintHost, "[tuiHint][tuiHintHost]", never, { "tuiHintHost": { "alias": "tuiHintHost"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -2,13 +2,13 @@ import { TuiDriver } from '@taiga-ui/core/classes';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TuiHintHover extends TuiDriver {
4
4
  private readonly isMobile;
5
- private readonly el;
6
5
  private readonly hovered$;
7
6
  private readonly options;
8
7
  private visible;
9
8
  private readonly toggle$;
10
9
  private readonly stream$;
11
10
  private readonly parent;
11
+ protected readonly el: HTMLElement;
12
12
  readonly showDelay: import("@angular/core").InputSignal<number>;
13
13
  readonly hideDelay: import("@angular/core").InputSignal<number>;
14
14
  readonly type = "hint";
@@ -1,8 +1,13 @@
1
+ import { type ElementRef, type OnDestroy } from '@angular/core';
1
2
  import { type TuiRectAccessor } from '@taiga-ui/core/classes';
2
3
  import { TuiHintHover } from './hint-hover.directive';
3
4
  import * as i0 from "@angular/core";
4
- export declare class TuiHintPointer extends TuiHintHover implements TuiRectAccessor {
5
+ export declare class TuiHintPointer extends TuiHintHover implements TuiRectAccessor, ElementRef<HTMLElement>, OnDestroy {
6
+ private readonly doc;
5
7
  private currentRect;
8
+ readonly nativeElement: HTMLDivElement;
9
+ constructor();
10
+ ngOnDestroy(): void;
6
11
  getClientRect(): DOMRect;
7
12
  protected onMove({ clientX, clientY }: MouseEvent): void;
8
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintPointer, never>;
@@ -1,4 +1,3 @@
1
- import { type Provider } from '@angular/core';
2
1
  import { TuiRectAccessor } from '@taiga-ui/core/classes';
3
2
  import { TuiHintDirective } from './hint.directive';
4
3
  import { TuiHintPointer } from './hint-pointer.directive';
@@ -6,23 +5,17 @@ import * as i0 from "@angular/core";
6
5
  import * as i1 from "@taiga-ui/core/directives/appearance";
7
6
  import * as i2 from "@taiga-ui/cdk/directives/animated";
8
7
  import * as i3 from "@taiga-ui/cdk/directives/active-zone";
9
- /** @internal */
10
- export declare function tuiGetHintProviders(): Provider[];
8
+ import * as i4 from "./hint-anchored.directive";
11
9
  export declare class TuiHintComponent {
12
10
  private readonly el;
13
11
  private readonly hover;
14
- private readonly vvs;
15
- private readonly viewport;
16
12
  protected readonly pointer: TuiHintPointer | null;
17
13
  protected readonly accessor: TuiRectAccessor;
18
14
  protected readonly hint: TuiHintDirective<any>;
15
+ protected readonly appearance: import("@angular/core").Signal<string>;
19
16
  protected readonly content: import("@angular/core").InputSignal<import("@taiga-ui/polymorpheus").PolymorpheusContent<any>> | import("@angular/core").WritableSignal<string>;
20
17
  protected readonly theme: string | null | undefined;
21
- protected readonly appearance: import("@angular/core").Signal<string>;
22
- constructor();
23
18
  protected onPointerDown(target: HTMLElement): void;
24
- private apply;
25
- private update;
26
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiHintComponent, "tui-hint", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.TuiAppearance; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiActiveZone; inputs: {}; outputs: {}; }]>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiHintComponent, "tui-hint", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.TuiAppearance; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiActiveZone; inputs: {}; outputs: {}; }, { directive: typeof i4.TuiHintAnchored; inputs: {}; outputs: {}; }]>;
28
21
  }
@@ -2,9 +2,10 @@ import { type OnChanges, type OnDestroy } from '@angular/core';
2
2
  import { type TuiRectAccessor, type TuiVehicle } from '@taiga-ui/core/classes';
3
3
  import { PolymorpheusComponent, type PolymorpheusContent } from '@taiga-ui/polymorpheus';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "./hint-driver.directive";
6
- import * as i2 from "./hint-hover.directive";
7
- import * as i3 from "./hint-position.directive";
5
+ import * as i1 from "./hint-anchor.directive";
6
+ import * as i2 from "./hint-driver.directive";
7
+ import * as i3 from "./hint-hover.directive";
8
+ import * as i4 from "./hint-position.directive";
8
9
  export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRectAccessor, TuiVehicle {
9
10
  private readonly service;
10
11
  private readonly ref;
@@ -20,5 +21,5 @@ export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRec
20
21
  getClientRect(): DOMRect;
21
22
  toggle(show: boolean): void;
22
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintDirective<any>, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i3.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; "tuiHintCentered": "tuiHintCentered"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintAnchor; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i4.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; "tuiHintCentered": "tuiHintCentered"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
24
25
  }
@@ -2,6 +2,8 @@ export * from './hint';
2
2
  export * from './hint.component';
3
3
  export * from './hint.directive';
4
4
  export * from './hint.providers';
5
+ export * from './hint-anchor.directive';
6
+ export * from './hint-anchored.directive';
5
7
  export * from './hint-describe.directive';
6
8
  export * from './hint-driver.directive';
7
9
  export * from './hint-host.directive';
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_ANCHOR_SUPPORT: InjectionToken<boolean>;
package/tokens/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './anchor-support';
1
2
  export * from './animations-speed';
2
3
  export * from './assets-path';
3
4
  export * from './auxiliary';