diff --git a/src/lib/common-ui.module.ts b/src/lib/common-ui.module.ts index 19d0947..b52230d 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,11 +53,12 @@ const components = [ ConfirmationDialogComponent, SideNavComponent, ToastComponent, + SmallChipComponent, ]; const pipes = [SortByPipe, HumanizePipe, CapitalizePipe]; @NgModule({ - declarations: [...components, ...pipes, LogPipe], + declarations: [...components, ...pipes, LogPipe, SmallChipComponent], imports: [CommonModule, ...matModules, ...modules, FormsModule, ReactiveFormsModule, KeycloakAngularModule], exports: [...components, ...pipes, ...modules, LogPipe], }) 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..a777edf --- /dev/null +++ b/src/lib/misc/small-chip/small-chip.component.html @@ -0,0 +1,3 @@ + +
+
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..072dff7 --- /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 | undefined; +}