diff --git a/projects/addon-doc/directives/text-code/text-code.directive.ts b/projects/addon-doc/directives/text-code/text-code.directive.ts index 3d522970e817..9f437bd7805e 100644 --- a/projects/addon-doc/directives/text-code/text-code.directive.ts +++ b/projects/addon-doc/directives/text-code/text-code.directive.ts @@ -1,5 +1,8 @@ import {Directive, Input} from '@angular/core'; +/** + * @deprecated: use [textContent]="code" + */ @Directive({ standalone: true, selector: 'code[tuiDocText]', diff --git a/projects/addon-mobile/directives/sidebar/sidebar.component.ts b/projects/addon-mobile/directives/sidebar/sidebar.component.ts index 8a18b65342ea..168c92d28806 100644 --- a/projects/addon-mobile/directives/sidebar/sidebar.component.ts +++ b/projects/addon-mobile/directives/sidebar/sidebar.component.ts @@ -20,7 +20,7 @@ import {TuiSidebarDirective} from './sidebar.directive'; changeDetection: ChangeDetectionStrategy.OnPush, animations: [tuiSlideIn], host: { - class: '"t-" + direction', + '[class]': '"t-" + direction', '[@tuiSlideIn]': 'animation', }, }) diff --git a/projects/core/components/expand/expand.component.ts b/projects/core/components/expand/expand.component.ts index b09fe15dc59c..161fa56c8f1d 100644 --- a/projects/core/components/expand/expand.component.ts +++ b/projects/core/components/expand/expand.component.ts @@ -136,7 +136,6 @@ export class TuiExpandComponent { } } - // noinspection JSUnusedGlobalSymbols protected onExpandLoaded(event: Event): void { event.stopPropagation(); diff --git a/projects/core/components/scrollbar/scrollbar.component.ts b/projects/core/components/scrollbar/scrollbar.component.ts index 5dfac4836868..708445c47aba 100644 --- a/projects/core/components/scrollbar/scrollbar.component.ts +++ b/projects/core/components/scrollbar/scrollbar.component.ts @@ -57,12 +57,10 @@ export class TuiScrollbar { return this.browserScrollRef.nativeElement !== this.el; } - // noinspection JSUnusedGlobalSymbols protected onScrollable(element: HTMLElement): void { this.browserScrollRef.nativeElement = element; } - // noinspection JSUnusedGlobalSymbols protected scrollIntoView(detail: HTMLElement): void { if (this.delegated) { return; diff --git a/projects/core/directives/dropdown/dropdown-context.directive.ts b/projects/core/directives/dropdown/dropdown-context.directive.ts index ef378fc94243..24ef09fda362 100644 --- a/projects/core/directives/dropdown/dropdown-context.directive.ts +++ b/projects/core/directives/dropdown/dropdown-context.directive.ts @@ -36,7 +36,7 @@ const MOVE_THRESHOLD = 15; 'onTouchStart($event.touches[0].clientX, $event.touches[0].clientY)', '(document:pointerdown.silent)': 'closeDropdown($event.target)', '(document:contextmenu.capture.silent)': 'closeDropdown($event.target)', - '(document:keydown.esc)': 'closeDropdown($event.target)', + '(document:keydown.esc)': 'closeDropdown($event.currentTarget)', '(contextmenu.prevent.stop)': 'onContextMenu($event.clientX, $event.clientY)', }, }) diff --git a/projects/demo/src/modules/components/alert/index.html b/projects/demo/src/modules/components/alert/index.html index 40f9a9e84f22..d8b76d4f609a 100644 --- a/projects/demo/src/modules/components/alert/index.html +++ b/projects/demo/src/modules/components/alert/index.html @@ -78,7 +78,7 @@ [(documentationPropertyValue)]="data" > Input data of notification, type: - + POLYMORPHEUS_CONTEXT into the component to get context input data and to output results. It has the following interface: - + , where O is output data type and diff --git a/projects/demo/src/modules/components/combo-box/index.html b/projects/demo/src/modules/components/combo-box/index.html index 40e04378e725..1835174a62c5 100644 --- a/projects/demo/src/modules/components/combo-box/index.html +++ b/projects/demo/src/modules/components/combo-box/index.html @@ -221,7 +221,7 @@ [(documentationPropertyValue)]="strict" > Value must only be an item of suggestions  - +

@@ -232,7 +232,7 @@ can handle string value, as well as - +

diff --git a/projects/demo/src/modules/components/dialog/index.html b/projects/demo/src/modules/components/dialog/index.html index d63ac7c8600d..0bf6bbd3790b 100644 --- a/projects/demo/src/modules/components/dialog/index.html +++ b/projects/demo/src/modules/components/dialog/index.html @@ -209,9 +209,9 @@

Template can be customized

Pass - + if you want prevent closing, for example, with a confirmation prompt. Be careful, passing - + will always display cross button even if it emits false value! @@ -223,7 +223,7 @@

Template can be customized

[(documentationPropertyValue)]="dismissible" > Dialog can be canceled with Escape key or with a click outside. Pass - + if you want prevent closing, for example, with a confirmation prompt. Template can be customized [(documentationPropertyValue)]="data" > Input data for dialog, type: - + Template can be customized in it. Dialog will provide this token with some useful options: $implicit with - + and completeWith hook to call diff --git a/projects/demo/src/modules/components/input/index.html b/projects/demo/src/modules/components/input/index.html index 6445426e73f2..52f0782e157a 100644 --- a/projects/demo/src/modules/components/input/index.html +++ b/projects/demo/src/modules/components/input/index.html @@ -291,7 +291,7 @@ [(documentationPropertyValue)]="placeholder" > Placeholder (use external - + to set it) diff --git a/projects/demo/src/modules/components/progress-bar/examples/2/index.html b/projects/demo/src/modules/components/progress-bar/examples/2/index.html index 463f2f4ddbfa..f9df187e6bb7 100644 --- a/projects/demo/src/modules/components/progress-bar/examples/2/index.html +++ b/projects/demo/src/modules/components/progress-bar/examples/2/index.html @@ -1,7 +1,7 @@
Single color

Use - + 's CSS-property color to set solid color of progress indicator. diff --git a/projects/demo/src/modules/components/progress-bar/examples/2/index.ts b/projects/demo/src/modules/components/progress-bar/examples/2/index.ts index 6a3c540cdbd2..d731b12191b2 100644 --- a/projects/demo/src/modules/components/progress-bar/examples/2/index.ts +++ b/projects/demo/src/modules/components/progress-bar/examples/2/index.ts @@ -2,14 +2,13 @@ import {AsyncPipe, isPlatformServer} from '@angular/common'; import {Component, inject, PLATFORM_ID} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocText} from '@taiga-ui/addon-doc'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; import {TuiProgress} from '@taiga-ui/kit'; import {of, timer} from 'rxjs'; @Component({ standalone: true, - imports: [TuiDocText, TuiProgress, AsyncPipe], + imports: [TuiProgress, AsyncPipe], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/progress-bar/index.html b/projects/demo/src/modules/components/progress-bar/index.html index bc9dc63ca4ef..7c558ad7ad83 100644 --- a/projects/demo/src/modules/components/progress-bar/index.html +++ b/projects/demo/src/modules/components/progress-bar/index.html @@ -11,13 +11,13 @@

– attribute component for native html tag - + .

Usage: - + .

@@ -119,7 +119,7 @@ value of - + of - + We recommend set solid color via - + 's CSS-property color (especially, if you support old not-chromium based Edge) diff --git a/projects/demo/src/modules/components/progress-circle/index.html b/projects/demo/src/modules/components/progress-circle/index.html index 9a670a3da8b9..bdeeac9783e2 100644 --- a/projects/demo/src/modules/components/progress-circle/index.html +++ b/projects/demo/src/modules/components/progress-circle/index.html @@ -7,7 +7,7 @@
- +
is a component to visually represent the completion of a process or operation (as a partially filled diff --git a/projects/demo/src/modules/components/services/scroll-service/index.html b/projects/demo/src/modules/components/services/scroll-service/index.html index 5cc3c6720648..b6d411c5886c 100644 --- a/projects/demo/src/modules/components/services/scroll-service/index.html +++ b/projects/demo/src/modules/components/services/scroll-service/index.html @@ -19,7 +19,7 @@

Method - + (emits a tuple tuple diff --git a/projects/demo/src/modules/components/slider/index.html b/projects/demo/src/modules/components/slider/index.html index 188e5f8233a9..17121bacaab6 100644 --- a/projects/demo/src/modules/components/slider/index.html +++ b/projects/demo/src/modules/components/slider/index.html @@ -10,7 +10,7 @@

attribute component for native html tag - + to choose a value from a limited range.
@@ -28,7 +28,7 @@

Usage: - + .

@@ -147,7 +147,7 @@ max of - +
of - + of - + Use maxLength for highlighting extra characters. If you want to limit the number of characters, add - + with native maxlength attribute. Margin top - +
@@ -21,7 +21,7 @@

Margin bottom - +

@@ -42,7 +42,7 @@

Margin right - +

@@ -64,7 +64,7 @@

Margin left - +

@@ -86,9 +86,9 @@

Vertical and horizontal margins - + and - +

diff --git a/projects/demo/src/modules/markup/spaces/examples/1/index.ts b/projects/demo/src/modules/markup/spaces/examples/1/index.ts index 741e14e2217d..ec986e07b7e0 100644 --- a/projects/demo/src/modules/markup/spaces/examples/1/index.ts +++ b/projects/demo/src/modules/markup/spaces/examples/1/index.ts @@ -2,11 +2,11 @@ import {ClipboardModule} from '@angular/cdk/clipboard'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocCopy, TuiDocText} from '@taiga-ui/addon-doc'; +import {TuiDocCopy} from '@taiga-ui/addon-doc'; @Component({ standalone: true, - imports: [TuiDocText, TuiDocCopy, ClipboardModule], + imports: [TuiDocCopy, ClipboardModule], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/markup/spaces/examples/2/index.html b/projects/demo/src/modules/markup/spaces/examples/2/index.html index 734887722be6..fe70ecca1a53 100644 --- a/projects/demo/src/modules/markup/spaces/examples/2/index.html +++ b/projects/demo/src/modules/markup/spaces/examples/2/index.html @@ -1,6 +1,6 @@

Margin top - +

@@ -21,7 +21,7 @@

Margin bottom - +

@@ -42,7 +42,7 @@

Margin right - +

@@ -64,7 +64,7 @@

Margin left - +

@@ -86,9 +86,9 @@

Vertical and horizontal margins - + and - +

diff --git a/projects/demo/src/modules/markup/spaces/examples/2/index.ts b/projects/demo/src/modules/markup/spaces/examples/2/index.ts index 741e14e2217d..ec986e07b7e0 100644 --- a/projects/demo/src/modules/markup/spaces/examples/2/index.ts +++ b/projects/demo/src/modules/markup/spaces/examples/2/index.ts @@ -2,11 +2,11 @@ import {ClipboardModule} from '@angular/cdk/clipboard'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDocCopy, TuiDocText} from '@taiga-ui/addon-doc'; +import {TuiDocCopy} from '@taiga-ui/addon-doc'; @Component({ standalone: true, - imports: [TuiDocText, TuiDocCopy, ClipboardModule], + imports: [TuiDocCopy, ClipboardModule], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/markup/spaces/index.html b/projects/demo/src/modules/markup/spaces/index.html index ffa56d103655..63d1608d7e46 100644 --- a/projects/demo/src/modules/markup/spaces/index.html +++ b/projects/demo/src/modules/markup/spaces/index.html @@ -11,7 +11,7 @@
You can build a class with direction and value between 0 and 15 ( - + ).
@@ -28,7 +28,7 @@

Mixin also gets a direction and a value ( - + ).

diff --git a/projects/kit/components/avatar/avatar-labeled.component.ts b/projects/kit/components/avatar/avatar-labeled.component.ts index 39dee2435d0d..e78213fd480d 100644 --- a/projects/kit/components/avatar/avatar-labeled.component.ts +++ b/projects/kit/components/avatar/avatar-labeled.component.ts @@ -26,9 +26,6 @@ import {TuiFade} from '@taiga-ui/kit/directives/fade'; styleUrls: ['./avatar-labeled.styles.less'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, - host: { - '[attr.title]': 'label', - }, }) export class TuiAvatarLabeled { @Input() diff --git a/projects/kit/components/progress/progress-circle/progress-circle.component.ts b/projects/kit/components/progress/progress-circle/progress-circle.component.ts index 594d2947c3d2..245d07baea8a 100644 --- a/projects/kit/components/progress/progress-circle/progress-circle.component.ts +++ b/projects/kit/components/progress/progress-circle/progress-circle.component.ts @@ -13,9 +13,9 @@ import {TUI_PROGRESS_OPTIONS} from '../progress.options'; styleUrls: ['./progress-circle.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, host: { - '[style.--tui-progress-color]': 'color', '[attr.data-size]': 'size', - '[style.--progress-ratio]': 'progressRatio', + '[style.--tui-progress-color]': 'color', + '[style.--t-progress-ratio]': 'progressRatio', }, }) export class TuiProgressCircle { diff --git a/projects/kit/components/progress/progress-circle/progress-circle.style.less b/projects/kit/components/progress/progress-circle/progress-circle.style.less index aecea4b9695f..101948019682 100644 --- a/projects/kit/components/progress/progress-circle/progress-circle.style.less +++ b/projects/kit/components/progress/progress-circle/progress-circle.style.less @@ -84,7 +84,7 @@ &_filled { transition: stroke-dashoffset var(--tui-duration) linear; - stroke-dashoffset: calc(@circumference - var(--progress-ratio) * @circumference); + stroke-dashoffset: calc(@circumference - var(--t-progress-ratio) * @circumference); } }