Chore: Eslint v9

Chore: Angular Zoneless
Chore: Removed Angular-Hotkeys dependency
Fix: Localization works properly now
Chore: Using Material 3 theme now
Chore: Removed toaster service to use snackbar directly
Fix: F2 Date working on all components now
This commit is contained in:
2024-07-25 10:16:48 +05:30
parent c07c79ffda
commit 336a8f59c5
94 changed files with 846 additions and 1030 deletions

View File

@ -65,8 +65,8 @@ import { RecipeListDatasource } from './recipe-list-datasource';
],
})
export class RecipeListComponent implements OnInit {
@ViewChild(MatPaginator, { static: true }) paginator?: MatPaginator;
@ViewChild(MatSort, { static: true }) sort?: MatSort;
@ViewChild(MatPaginator, { static: true }) paginator!: MatPaginator;
@ViewChild(MatSort, { static: true }) sort!: MatSort;
form: FormGroup<{
period: FormControl<Period>;
productGroup: FormControl<ProductGroup | string | null>;
@ -75,10 +75,16 @@ export class RecipeListComponent implements OnInit {
productGroups: ProductGroup[] = [];
periods: Period[] = [];
periodFilter: BehaviorSubject<Period> = new BehaviorSubject<Period>(new Period());
productGroupFilter: BehaviorSubject<string> = new BehaviorSubject('');
productGroupFilter = new BehaviorSubject<string>('');
list: Recipe[] = [];
data: BehaviorSubject<Recipe[]> = new BehaviorSubject<Recipe[]>([]);
dataSource: RecipeListDatasource = new RecipeListDatasource(this.productGroupFilter, this.data);
dataSource: RecipeListDatasource = new RecipeListDatasource(
this.productGroupFilter,
this.data,
this.paginator,
this.sort,
);
period: Period = new Period();
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */