Event Widget Updates + Format Downloads + Scanner Work (#3024)

This commit is contained in:
Joe Milazzo 2024-06-27 16:35:50 -05:00 committed by GitHub
parent 30a8a2555f
commit a427d02ed1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 971 additions and 694 deletions

View file

@ -1,4 +1,4 @@
import { Directive, EventEmitter, Input, Output } from "@angular/core";
import {ChangeDetectorRef, Directive, EventEmitter, inject, Input, OnInit, Output} from "@angular/core";
export const compare = (v1: string | number, v2: string | number) => (v1 < v2 ? -1 : v1 > v2 ? 1 : 0);
export type SortColumn<T> = keyof T | '';
@ -11,6 +11,7 @@ export interface SortEvent<T> {
}
@Directive({
// eslint-disable-next-line @angular-eslint/directive-selector
selector: 'th[sortable]',
host: {
'[class.asc]': 'direction === "asc"',
@ -29,4 +30,4 @@ export class SortableHeader<T> {
this.direction = rotate[this.direction];
this.sort.emit({ column: this.sortable, direction: this.direction });
}
}
}