diff --git a/projects/design-angular-kit/src/lib/components/form/transfer/transfer-list/transfer-list.component.html b/projects/design-angular-kit/src/lib/components/form/transfer/transfer-list/transfer-list.component.html index 59811bf1..5b8016c7 100644 --- a/projects/design-angular-kit/src/lib/components/form/transfer/transfer-list/transfer-list.component.html +++ b/projects/design-angular-kit/src/lib/components/form/transfer/transfer-list/transfer-list.component.html @@ -1,6 +1,6 @@
-
+
@if (numberOfItems$ | async; as numberOfItems) { {{ numberOfItems.length }} - {{ (numberOfItems.length > 1 ? 'it.transfer.items' : 'it.transfer.item') | translate }} + {{ (numberOfItems.length === 1 ? 'it.transfer.item' : 'it.transfer.items') | translate }} } {{ title | titlecase }} @@ -23,7 +23,7 @@
@for (item of items$ | async; track item.value) { -
+
extends TransferItem { @@ -15,7 +15,7 @@ interface SelectableTransferItem extends TransferItem { @Component({ selector: 'it-transfer-list', standalone: true, - imports: [TranslateModule, AsyncPipe, TitleCasePipe], + imports: [ItIconComponent, TranslateModule, AsyncPipe, TitleCasePipe], templateUrl: './transfer-list.component.html', changeDetection: ChangeDetectionStrategy.OnPush, }) diff --git a/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.html b/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.html index a7bfd216..260576a4 100644 --- a/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.html +++ b/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.html @@ -1,4 +1,4 @@ -
+
@if (label) { } @@ -18,7 +18,7 @@ (click)="transferClickHandler($event)" (keypress)="transferKeyPressHandler($event)" [attr.aria-label]="'it.transfer.aria-label-move-forward' | translate"> - + {{ 'it.transfer.label-move-forward' | translate }} - + {{ 'it.transfer.label-move-backward' | translate }} - + {{ 'it.transfer.label-reset' | translate }}
diff --git a/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.ts b/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.ts index b51ae971..d2f2fa36 100644 --- a/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.ts +++ b/projects/design-angular-kit/src/lib/components/form/transfer/transfer.component.ts @@ -9,6 +9,7 @@ import { TransferStore } from './store/transfer.store'; import { ItTransferListComponent } from './transfer-list/transfer-list.component'; import { TransferItem } from './transfer.model'; import { TranslateModule } from '@ngx-translate/core'; +import { ItIconComponent } from 'projects/design-angular-kit/src/public_api'; /** * Transfer @@ -18,7 +19,7 @@ import { TranslateModule } from '@ngx-translate/core'; selector: 'it-transfer', standalone: true, templateUrl: './transfer.component.html', - imports: [TranslateModule, ItTransferListComponent, NgClass, AsyncPipe, ReactiveFormsModule], + imports: [ItIconComponent, TranslateModule, ItTransferListComponent, NgClass, AsyncPipe, ReactiveFormsModule], providers: [TransferStore], changeDetection: ChangeDetectionStrategy.OnPush, })