feat: add base class for settings listing

This commit is contained in:
2026-02-17 19:27:45 -03:00
parent 91c09a0ca3
commit 36df70bf38
3 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
<app-simple-list-w-actions [items]="(data$|async) ?? []" (action)="edit($event)"/>
<app-floating-big-btn icon="add" (bigClick)="add()"/>

View File

@@ -0,0 +1,5 @@
:host {
display: flex;
flex-direction: column;
height: 100%;
}

View File

@@ -0,0 +1,9 @@
import { Observable } from 'rxjs';
import { SimpleListItem } from '../simple-list-w-actions/SimpleListItem';
export abstract class SettingsBaseList {
abstract data$: Observable<SimpleListItem[]>;
protected abstract edit(action: { action: string; subject: string }): void;
protected abstract add(): void;
}