Skip to content

Commit

Permalink
[ACS-8054] dynamic chip list refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaragruszka committed Jun 5, 2024
1 parent b9f5c50 commit 7404a2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
21 changes: 2 additions & 19 deletions lib/core/src/lib/directives/directive.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

import { NgModule } from '@angular/core';
import { ColorSetDirective } from './color-set/color-set.directive';
import { HighlightDirective } from './highlight.directive';
import { InfiniteSelectScrollDirective } from './infinite-select-scroll.directive';
import { LogoutDirective } from './logout.directive';
Expand All @@ -25,24 +24,8 @@ import { TooltipCardDirective } from './tooltip-card/tooltip-card.directive';
import { UploadDirective } from './upload.directive';

@NgModule({
imports: [
HighlightDirective,
LogoutDirective,
UploadDirective,
TooltipCardDirective,
TooltipCardComponent,
InfiniteSelectScrollDirective,
ColorSetDirective
],
exports: [
HighlightDirective,
LogoutDirective,
UploadDirective,
TooltipCardDirective,
TooltipCardComponent,
InfiniteSelectScrollDirective,
ColorSetDirective
]
imports: [HighlightDirective, LogoutDirective, UploadDirective, TooltipCardDirective, TooltipCardComponent, InfiniteSelectScrollDirective],
exports: [HighlightDirective, LogoutDirective, UploadDirective, TooltipCardDirective, TooltipCardComponent, InfiniteSelectScrollDirective]
})
/** @deprecated This module is deprecated and will be removed in a future release. Please consider importing standalone components and directives directly. */
export class DirectiveModule {}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="adf-dynamic-chip-list-container"
<div #nodeListContainer
class="adf-dynamic-chip-list-container"
[class.adf-dynamic-chip-list-flex-column]="limitChipsDisplayed && (!calculationsDone || columnFlexDirection)"
[class.adf-dynamic-chip-list-button-in-next-line]="moveLoadMoreButtonToNextRow"
[class.adf-dynamic-chip-list-paginated]="paginationData"
#nodeListContainer>
[class.adf-dynamic-chip-list-paginated]="paginationData">
<mat-chip-list [class.adf-dynamic-chip-list-full-width]="limitChipsDisplayed && !calculationsDone"
role="listbox"
[attr.aria-label]="'METADATA.BASIC.TAGS' | translate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,6 @@
.adf-dynamic-chip-list-chip {
height: auto;
word-break: break-word;
padding: 6px 11px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@
*/

import { NgModule } from '@angular/core';
import { ColorSetDirective } from '../directives/color-set/color-set.directive';
import { DynamicChipListComponent } from './dynamic-chip-list.component';
import { MatChipsModule } from '@angular/material/chips';
import { MatIconModule } from '@angular/material/icon';
import { MatButtonModule } from '@angular/material/button';
import { TranslateModule } from '@ngx-translate/core';
import { CommonModule } from '@angular/common';

@NgModule({
declarations: [DynamicChipListComponent],
imports: [MatChipsModule, MatIconModule, MatButtonModule, TranslateModule, CommonModule, ColorSetDirective],
imports: [DynamicChipListComponent],
exports: [DynamicChipListComponent]
})
export class DynamicChipListModule {}

0 comments on commit 7404a2b

Please sign in to comment.