-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f81d3c
commit 83b98c8
Showing
6 changed files
with
58 additions
and
18 deletions.
There are no files selected for viewing
42 changes: 38 additions & 4 deletions
42
src/@noctua.search/components/search-history/search-history.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,49 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Component, OnInit, OnDestroy } from '@angular/core'; | ||
import { Subject } from 'rxjs'; | ||
import { NoctuaFormConfigService, NoctuaUserService } from 'noctua-form-base'; | ||
import { NoctuaSearchService } from './../..//services/noctua-search.service'; | ||
import { NoctuaSearchMenuService } from '../../services/search-menu.service'; | ||
|
||
@Component({ | ||
selector: 'noc-search-history', | ||
templateUrl: './search-history.component.html', | ||
styleUrls: ['./search-history.component.scss'] | ||
}) | ||
export class SearchHistoryComponent implements OnInit { | ||
export class SearchHistoryComponent implements OnInit, OnDestroy { | ||
searchCriteria: any = {}; | ||
|
||
constructor() { } | ||
private unsubscribeAll: Subject<any>; | ||
|
||
ngOnInit() { | ||
constructor(public noctuaUserService: NoctuaUserService, | ||
public noctuaSearchMenuService: NoctuaSearchMenuService, | ||
private noctuaSearchService: NoctuaSearchService, | ||
public noctuaFormConfigService: NoctuaFormConfigService) { | ||
// this.groups = this.noctuaSearchService.groups; | ||
this.unsubscribeAll = new Subject(); | ||
} | ||
|
||
ngOnInit(): void { | ||
//this.searchForm = this.createSearchForm(); | ||
} | ||
|
||
selectGroup(group) { | ||
this.searchCriteria.group = group; | ||
this.noctuaSearchService.search(this.searchCriteria); | ||
} | ||
|
||
|
||
search() { | ||
let searchCriteria | ||
|
||
this.noctuaSearchService.search(searchCriteria); | ||
} | ||
|
||
close() { | ||
this.noctuaSearchMenuService.closeLeftDrawer(); | ||
} | ||
|
||
ngOnDestroy(): void { | ||
this.unsubscribeAll.next(); | ||
this.unsubscribeAll.complete(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export class Page { | ||
size = 0; | ||
size = 50; | ||
total = 0; | ||
pageNumber = 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters