diff --git a/src/lib/common-ui.module.ts b/src/lib/common-ui.module.ts index 19d0947..b39ab59 100644 --- a/src/lib/common-ui.module.ts +++ b/src/lib/common-ui.module.ts @@ -29,6 +29,7 @@ import { MatButtonModule } from '@angular/material/button'; import { MatDialogModule } from '@angular/material/dialog'; import { CapitalizePipe } from './utils/pipes/capitalize.pipe'; import { KeycloakAngularModule } from 'keycloak-angular'; +import { SmallChipComponent } from './misc/small-chip/small-chip.component'; const matModules = [MatIconModule, MatProgressSpinnerModule, MatButtonModule, MatDialogModule]; const modules = [ @@ -52,12 +53,14 @@ const components = [ ConfirmationDialogComponent, SideNavComponent, ToastComponent, + SmallChipComponent, ]; -const pipes = [SortByPipe, HumanizePipe, CapitalizePipe]; +const pipes = [SortByPipe, HumanizePipe, CapitalizePipe, LogPipe]; @NgModule({ - declarations: [...components, ...pipes, LogPipe], + declarations: [...components, ...pipes], imports: [CommonModule, ...matModules, ...modules, FormsModule, ReactiveFormsModule, KeycloakAngularModule], exports: [...components, ...pipes, ...modules, LogPipe], }) -export class CommonUiModule {} +export class CommonUiModule { +} diff --git a/src/lib/misc/small-chip/small-chip.component.html b/src/lib/misc/small-chip/small-chip.component.html new file mode 100644 index 0000000..1644077 --- /dev/null +++ b/src/lib/misc/small-chip/small-chip.component.html @@ -0,0 +1 @@ +
diff --git a/src/lib/misc/small-chip/small-chip.component.scss b/src/lib/misc/small-chip/small-chip.component.scss new file mode 100644 index 0000000..78bc3fb --- /dev/null +++ b/src/lib/misc/small-chip/small-chip.component.scss @@ -0,0 +1,5 @@ +.chip { + width: 12px; + height: 6px; + border-radius: 6px; +} diff --git a/src/lib/misc/small-chip/small-chip.component.ts b/src/lib/misc/small-chip/small-chip.component.ts new file mode 100644 index 0000000..db9a6e5 --- /dev/null +++ b/src/lib/misc/small-chip/small-chip.component.ts @@ -0,0 +1,11 @@ +import { ChangeDetectionStrategy, Component, Input } from '@angular/core'; + +@Component({ + selector: 'redaction-small-chip [color]', + templateUrl: './small-chip.component.html', + styleUrls: ['./small-chip.component.scss'], + changeDetection: ChangeDetectionStrategy.OnPush, +}) +export class SmallChipComponent { + @Input() color!: string; +}