@taiga-ui/core 5.13.0 → 5.14.0-canary.2b3ccfb

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 (85) hide show
  1. package/components/carousel/carousel.component.d.ts +1 -0
  2. package/components/data-list/data-list.component.d.ts +0 -2
  3. package/components/data-list/data-list.tokens.d.ts +2 -0
  4. package/components/notification/notification.service.d.ts +2 -1
  5. package/components/scrollbar/index.d.ts +2 -0
  6. package/components/scrollbar/scroll-controls.component.d.ts +7 -4
  7. package/components/scrollbar/scroll-controls.service.d.ts +10 -0
  8. package/components/scrollbar/scrollable.directive.d.ts +6 -1
  9. package/components/scrollbar/scrollbar-position.directive.d.ts +15 -0
  10. package/components/scrollbar/scrollbar.component.d.ts +2 -1
  11. package/components/scrollbar/scrollbar.directive.d.ts +3 -6
  12. package/components/textfield/select-like.directive.d.ts +1 -0
  13. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +3 -2
  14. package/components/textfield/textfield.component.d.ts +1 -1
  15. package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
  16. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  17. package/fesm2022/taiga-ui-core-components-carousel.mjs +7 -3
  18. package/fesm2022/taiga-ui-core-components-carousel.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-core-components-cell.mjs +3 -3
  20. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-core-components-checkbox.mjs +2 -2
  22. package/fesm2022/taiga-ui-core-components-checkbox.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-core-components-data-list.mjs +12 -10
  24. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-core-components-error.mjs +2 -2
  26. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-core-components-expand.mjs +2 -2
  28. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
  30. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-core-components-label.mjs +3 -3
  32. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
  34. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-core-components-loader.mjs +2 -2
  36. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-core-components-notification.mjs +16 -10
  38. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-core-components-radio.mjs +2 -2
  40. package/fesm2022/taiga-ui-core-components-radio.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  42. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +97 -57
  44. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-core-components-slider.mjs +4 -4
  46. package/fesm2022/taiga-ui-core-components-slider.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-core-components-textfield.mjs +16 -24
  48. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-core-components-title.mjs +3 -3
  50. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-core-directives-appearance.mjs +3 -3
  52. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-core-directives-group.mjs +3 -3
  54. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-core-directives-icons.mjs +3 -3
  56. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-core-portals-alert.mjs +6 -6
  58. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-core-portals-dialog.mjs +2 -2
  60. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-core-portals-dropdown.mjs +50 -28
  62. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-core-portals-hint.mjs +51 -43
  64. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-core-portals-modal.mjs +4 -4
  66. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-core-portals-popup.mjs +25 -12
  68. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-core-services.mjs +10 -1
  70. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-core-tokens.mjs +15 -20
  72. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  73. package/package.json +16 -16
  74. package/portals/alert/alert.service.d.ts +2 -1
  75. package/portals/dropdown/dropdown-anchor.directive.d.ts +16 -0
  76. package/portals/dropdown/dropdown.component.d.ts +3 -11
  77. package/portals/dropdown/dropdown.directive.d.ts +3 -1
  78. package/portals/dropdown/index.d.ts +1 -0
  79. package/portals/hint/hint-options.directive.d.ts +2 -0
  80. package/portals/hint/hint-position.directive.d.ts +3 -1
  81. package/portals/hint/hint.component.d.ts +0 -1
  82. package/portals/hint/hint.directive.d.ts +3 -3
  83. package/portals/popup/popup.directive.d.ts +1 -0
  84. package/portals/popup/popups.component.d.ts +4 -1
  85. package/services/position.service.d.ts +1 -0
@@ -1,30 +1,22 @@
1
- import { type AfterViewInit } from '@angular/core';
2
1
  import { TuiDropdownDirective } from './dropdown.directive';
3
2
  import * as i0 from "@angular/core";
4
3
  import * as i1 from "@taiga-ui/cdk/directives/active-zone";
5
4
  import * as i2 from "@taiga-ui/cdk/directives/animated";
5
+ import * as i3 from "./dropdown-anchor.directive";
6
6
  /**
7
7
  * @description:
8
8
  * This component is used to show template in a portal
9
9
  * using default style of white rounded box with a shadow
10
10
  */
11
- export declare class TuiDropdownComponent implements AfterViewInit {
12
- private readonly el;
13
- private readonly accessor;
14
- private readonly viewport;
15
- private readonly vvs;
16
- private readonly styles$;
11
+ export declare class TuiDropdownComponent {
17
12
  protected readonly options: import("./dropdown-options.directive").TuiDropdownOptions;
18
13
  protected readonly directive: TuiDropdownDirective;
19
14
  protected readonly context: Record<any, any> | null;
20
15
  protected readonly darkMode: import("@angular/core").WritableSignal<boolean> & {
21
16
  reset(): void;
22
17
  };
23
- protected readonly position: "fixed" | "absolute";
24
18
  protected readonly theme: import("@angular/core").Signal<string | null | undefined>;
25
- ngAfterViewInit(): void;
26
19
  protected readonly close: () => void;
27
- private getStyles;
28
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiDropdownComponent, "tui-dropdown", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; 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.TuiDropdownAnchor; inputs: {}; outputs: {}; }]>;
30
22
  }
@@ -1,12 +1,13 @@
1
1
  import { type AfterViewChecked, type ComponentRef, type OnDestroy, TemplateRef } from '@angular/core';
2
2
  import { type TuiContext } from '@taiga-ui/cdk/types';
3
- import { type TuiRectAccessor, type TuiVehicle } from '@taiga-ui/core/classes';
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
6
  import * as i1 from "./dropdown.driver";
7
7
  import * as i2 from "./dropdown-a11y.directive";
8
8
  import * as i3 from "./dropdown-position.directive";
9
9
  export declare class TuiDropdownDirective implements AfterViewChecked, OnDestroy, TuiRectAccessor, TuiVehicle {
10
+ private readonly injector;
10
11
  private readonly refresh$;
11
12
  private readonly service;
12
13
  private readonly cdr;
@@ -18,6 +19,7 @@ export declare class TuiDropdownDirective implements AfterViewChecked, OnDestroy
18
19
  readonly type = "dropdown";
19
20
  readonly component: PolymorpheusComponent<any>;
20
21
  readonly content: import("@angular/core").InputSignalWithTransform<string | number | PolymorpheusComponent<unknown> | import("@angular/platform-browser").SafeValue | import("@taiga-ui/polymorpheus").PolymorpheusHandler<TuiContext<() => void>> | PolymorpheusTemplate<"" | Partial<TuiContext<() => void>>> | TemplateRef<Partial<TuiContext<() => void>>> | null | undefined, PolymorpheusContent<TuiContext<() => void>>>;
22
+ get accessor(): TuiRectAccessor;
21
23
  get position(): 'absolute' | 'fixed';
22
24
  ngAfterViewChecked(): void;
23
25
  ngOnDestroy(): void;
@@ -4,6 +4,7 @@ export * from './dropdown.directive';
4
4
  export * from './dropdown.driver';
5
5
  export * from './dropdown.providers';
6
6
  export * from './dropdown-a11y.directive';
7
+ export * from './dropdown-anchor.directive';
7
8
  export * from './dropdown-close.directive';
8
9
  export * from './dropdown-content.directive';
9
10
  export * from './dropdown-context.directive';
@@ -1,8 +1,10 @@
1
1
  import { type TuiAppearanceOptions } from '@taiga-ui/core/directives/appearance';
2
2
  export type TuiHintDirection = 'bottom-end' | 'bottom-start' | 'bottom' | 'end-bottom' | 'end-top' | 'end' | 'start-bottom' | 'start-top' | 'start' | 'top-end' | 'top-start' | 'top';
3
3
  export declare const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[];
4
+ /** TODO: remove optionality in v6 */
4
5
  export interface TuiHintOptions extends TuiAppearanceOptions {
5
6
  readonly direction: TuiHintDirection | TuiHintDirection[];
7
+ readonly centered?: boolean;
6
8
  readonly hideDelay: number;
7
9
  readonly icon: string;
8
10
  readonly showDelay: number;
@@ -5,16 +5,18 @@ import * as i0 from "@angular/core";
5
5
  export declare class TuiHintPosition extends TuiPositionAccessor {
6
6
  private readonly el;
7
7
  private readonly viewport;
8
+ private readonly options;
8
9
  private readonly directionChange;
9
10
  private readonly accessor;
10
11
  private readonly points;
11
12
  readonly direction: import("@angular/core").InputSignal<TuiHintDirection | TuiHintDirection[]>;
12
13
  readonly offset: import("@angular/core").InputSignal<number>;
14
+ readonly centered: import("@angular/core").InputSignal<boolean | undefined>;
13
15
  readonly tuiHintDirectionChange: import("@angular/core").OutputRef<TuiHintDirection>;
14
16
  readonly type = "hint";
15
17
  getPosition({ width, height }: DOMRect): TuiPoint;
16
18
  private get fallback();
17
19
  private checkPosition;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintPosition, never>;
19
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; "offset": { "alias": "tuiHintOffset"; "required": false; "isSignal": true; }; }, { "tuiHintDirectionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; "offset": { "alias": "tuiHintOffset"; "required": false; "isSignal": true; }; "centered": { "alias": "tuiHintCentered"; "required": false; "isSignal": true; }; }, { "tuiHintDirectionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
20
22
  }
@@ -16,7 +16,6 @@ export declare class TuiHintComponent {
16
16
  protected readonly pointer: TuiHintPointer | null;
17
17
  protected readonly accessor: TuiRectAccessor;
18
18
  protected readonly hint: TuiHintDirective<any>;
19
- protected readonly isMobile: boolean;
20
19
  protected readonly content: import("@angular/core").InputSignal<import("@taiga-ui/polymorpheus").PolymorpheusContent<any>> | import("@angular/core").WritableSignal<string>;
21
20
  protected readonly theme: string | null | undefined;
22
21
  protected readonly appearance: import("@angular/core").Signal<string>;
@@ -7,11 +7,11 @@ import * as i2 from "./hint-hover.directive";
7
7
  import * as i3 from "./hint-position.directive";
8
8
  export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRectAccessor, TuiVehicle {
9
9
  private readonly service;
10
- private ref?;
10
+ private readonly ref;
11
11
  readonly content: import("@angular/core").InputSignal<PolymorpheusContent<C>>;
12
12
  readonly context: import("@angular/core").InputSignal<C | undefined>;
13
13
  readonly appearance: import("@angular/core").InputSignal<string>;
14
- readonly visible: import("@angular/core").OutputEmitterRef<boolean>;
14
+ readonly visible: import("@angular/core").OutputRef<boolean>;
15
15
  component: PolymorpheusComponent<any>;
16
16
  readonly el: HTMLElement;
17
17
  readonly type = "hint";
@@ -20,5 +20,5 @@ export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRec
20
20
  getClientRect(): DOMRect;
21
21
  toggle(show: boolean): void;
22
22
  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"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
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
24
  }
@@ -1,6 +1,7 @@
1
1
  import { type OnChanges, type OnDestroy } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TuiPopup implements OnChanges, OnDestroy {
4
+ private readonly cdr;
4
5
  private readonly template;
5
6
  private readonly service;
6
7
  private ref?;
@@ -1,6 +1,9 @@
1
+ import { type AfterViewChecked } from '@angular/core';
1
2
  import { TuiPortals } from '@taiga-ui/cdk/portals';
2
3
  import * as i0 from "@angular/core";
3
- export declare class TuiPopups extends TuiPortals {
4
+ export declare const TUI_CDR: "_tuiCdr";
5
+ export declare class TuiPopups extends TuiPortals implements AfterViewChecked {
6
+ ngAfterViewChecked(): void;
4
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiPopups, never>;
5
8
  static ɵcmp: i0.ɵɵComponentDeclaration<TuiPopups, "tui-popups", never, {}, {}, never, ["*"], true, never>;
6
9
  }
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
4
4
  export declare class TuiPositionService extends Observable<TuiPoint> {
5
5
  private readonly el;
6
6
  private readonly accessor;
7
+ private rect?;
7
8
  constructor();
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiPositionService, never>;
9
10
  static ɵprov: i0.ɵɵInjectableDeclaration<TuiPositionService>;