cleaning
This commit is contained in:
@@ -10,4 +10,5 @@ export interface ICylinder {
|
|||||||
system: any;
|
system: any;
|
||||||
keys: IKey[];
|
keys: IKey[];
|
||||||
keyCount: number;
|
keyCount: number;
|
||||||
|
digital: boolean;
|
||||||
}
|
}
|
||||||
@@ -10,4 +10,5 @@ export interface IKey {
|
|||||||
nr: number;
|
nr: number;
|
||||||
deletedAt?: string;
|
deletedAt?: string;
|
||||||
keyLost: Date | null;
|
keyLost: Date | null;
|
||||||
|
digital: boolean;
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
import { Component, inject } from '@angular/core';
|
import { Component, inject } from '@angular/core';
|
||||||
import { AG_GRID_LOCALE_DE } from '@ag-grid-community/locale';
|
import { AG_GRID_LOCALE_DE } from '@ag-grid-community/locale';
|
||||||
import { AgGridAngular } from 'ag-grid-angular';
|
import { AgGridAngular } from 'ag-grid-angular';
|
||||||
import { GridOptions,GridApi, GridReadyEvent, CellEditingStoppedEvent, ICellEditorParams, FilterActionParams, FilterAction, themeQuartz, Theme, ThemeDefaultParams, AgGridEvent, CellClickedEvent, CellDoubleClickedEvent, ColDef } from 'ag-grid-community';
|
import { GridOptions,GridApi, GridReadyEvent, CellEditingStoppedEvent, CellDoubleClickedEvent } from 'ag-grid-community';
|
||||||
import { DatePipe } from '@angular/common';
|
import { DatePipe } from '@angular/common';
|
||||||
import { ApiService } from '../../shared/api.service';
|
import { ApiService } from '../../shared/api.service';
|
||||||
import { IKey } from '../../model/interface/key.interface';
|
import { IKey } from '../../model/interface/key.interface';
|
||||||
import { HotToastService } from '@ngxpert/hot-toast';
|
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
|
import { MatDialog, MatDialogModule } from '@angular/material/dialog';
|
||||||
import { CreateKeyComponent } from './create/create.component';
|
import { CreateKeyComponent } from './create/create.component';
|
||||||
@@ -13,14 +12,12 @@ import { AgKeyActionsComponent } from '../../shared/ag-grid/components/ag-key-ac
|
|||||||
import { MatIconModule } from '@angular/material/icon';
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
import { ArchiveComponent } from './components/archive/archive.component';
|
import { ArchiveComponent } from './components/archive/archive.component';
|
||||||
import { AgLoadingComponent } from '../../shared/ag-grid/components/ag-loading/ag-loading.component';
|
import { AgLoadingComponent } from '../../shared/ag-grid/components/ag-loading/ag-loading.component';
|
||||||
import { map, of } from 'rxjs';
|
|
||||||
import { ICylinder } from '../../model/interface/cylinder.interface';
|
import { ICylinder } from '../../model/interface/cylinder.interface';
|
||||||
import { LostKeysComponent } from './components/lost-keys/lost-keys.component';
|
import { LostKeysComponent } from './components/lost-keys/lost-keys.component';
|
||||||
import { MatTooltipModule } from '@angular/material/tooltip';
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
import { SelectKeyCylinderComponent } from './create/select-key-cylinder/select-key-cylinder.component';
|
import { SelectKeyCylinderComponent } from './create/select-key-cylinder/select-key-cylinder.component';
|
||||||
import { ActivatedRoute, Route } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { ModuleRegistry } from 'ag-grid-community';
|
import { ModuleRegistry } from 'ag-grid-community';
|
||||||
import { AgGridService } from '../../shared/ag-grid/ag-grid.service';
|
|
||||||
import { AgGridContainerComponent } from '../../shared/ag-grid/components/ag-grid-container/ag-grid-container.component';
|
import { AgGridContainerComponent } from '../../shared/ag-grid/components/ag-grid-container/ag-grid-container.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -33,14 +30,9 @@ import { AgGridContainerComponent } from '../../shared/ag-grid/components/ag-gri
|
|||||||
export class KeysComponent extends AgGridContainerComponent {
|
export class KeysComponent extends AgGridContainerComponent {
|
||||||
private api: ApiService = inject(ApiService);
|
private api: ApiService = inject(ApiService);
|
||||||
private datePipe = inject(DatePipe);
|
private datePipe = inject(DatePipe);
|
||||||
private toast: HotToastService = inject(HotToastService);
|
|
||||||
private dialog: MatDialog = inject(MatDialog);
|
private dialog: MatDialog = inject(MatDialog);
|
||||||
private route: ActivatedRoute = inject(ActivatedRoute);
|
private route: ActivatedRoute = inject(ActivatedRoute);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// cylinders: any[] = [];
|
|
||||||
|
|
||||||
gridApi!: GridApi;
|
gridApi!: GridApi;
|
||||||
|
|
||||||
gridOptions: GridOptions = {
|
gridOptions: GridOptions = {
|
||||||
@@ -101,13 +93,7 @@ export class KeysComponent extends AgGridContainerComponent {
|
|||||||
pagination: true,
|
pagination: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
editKey(id: string) {
|
editKey(id: string) { }
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private setFilterToParams() {
|
private setFilterToParams() {
|
||||||
const params = this.route.snapshot.queryParams;
|
const params = this.route.snapshot.queryParams;
|
||||||
|
|||||||
Reference in New Issue
Block a user