chore(ui): clear eslint angular style guide bucket

Rename reader dialog outputs away from native DOM event names and convert the menu item component to an element selector so the remaining Angular style-guide lint rules are satisfied without changing behavior.

Validation: just ui lint
This commit is contained in:
James Cox
2026-04-22 17:26:49 -04:00
committed by Zach Yale
parent 935b3edced
commit 68e3df7cde
12 changed files with 32 additions and 32 deletions
@@ -21,14 +21,14 @@
@if (showNoteDialog) {
<app-cbx-note-dialog
[data]="noteDialogData"
(save)="onNoteSave($event)"
(cancel)="onNoteCancel()"
(saved)="onNoteSave($event)"
(cancelled)="onNoteCancel()"
></app-cbx-note-dialog>
}
@if (showShortcutsHelp) {
<app-cbx-shortcuts-help
(close)="onShortcutsHelpClose()"
(closed)="onShortcutsHelpClose()"
></app-cbx-shortcuts-help>
}
@@ -27,8 +27,8 @@ export class CbxNoteDialogComponent implements OnChanges {
private readonly t = inject(TranslocoService);
@Input() data: CbxNoteDialogData | null = null;
@Output() save = new EventEmitter<CbxNoteDialogResult>();
@Output() cancel = new EventEmitter<void>();
@Output() saved = new EventEmitter<CbxNoteDialogResult>();
@Output() cancelled = new EventEmitter<void>();
noteContent = '';
selectedColor = '#FFC107';
@@ -57,7 +57,7 @@ export class CbxNoteDialogComponent implements OnChanges {
onSave(): void {
if (this.noteContent.trim()) {
this.save.emit({
this.saved.emit({
noteContent: this.noteContent.trim(),
color: this.selectedColor
});
@@ -65,7 +65,7 @@ export class CbxNoteDialogComponent implements OnChanges {
}
onCancel(): void {
this.cancel.emit();
this.cancelled.emit();
}
selectColor(color: string): void {
@@ -24,7 +24,7 @@ interface ShortcutGroup {
export class CbxShortcutsHelpComponent {
private readonly t = inject(TranslocoService);
@Output() close = new EventEmitter<void>();
@Output() closed = new EventEmitter<void>();
get shortcutGroups(): ShortcutGroup[] {
return [
@@ -70,7 +70,7 @@ export class CbxShortcutsHelpComponent {
isMobile = window.innerWidth < 768;
onClose(): void {
this.close.emit();
this.closed.emit();
}
onOverlayClick(event: MouseEvent): void {