[ADF-1918] added new search api service to search component (#2667)

* [ADF-1918] added new search api service to search component

* [ADF-1918] fixed close panel on empty search word

* [ADF-1918] added documentation for search changes

* [ADF-1918] fixed closing of subscription on destroy
This commit is contained in:
Vito
2017-11-19 20:44:12 +00:00
committed by Eugenio Romano
parent a105ab0334
commit 0f0f22634a
9 changed files with 283 additions and 113 deletions

View File

@@ -18,7 +18,7 @@
import { AuthenticationService, ThumbnailService } from '@alfresco/adf-core';
import { animate, state, style, transition, trigger } from '@angular/animations';
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { MinimalNodeEntity } from 'alfresco-js-api';
import { MinimalNodeEntity, QueryBody } from 'alfresco-js-api';
import { Observable } from 'rxjs/Observable';
import { Subject } from 'rxjs/Subject';
@@ -55,18 +55,12 @@ export class SearchControlComponent implements OnInit, OnDestroy {
@Input()
liveSearchEnabled: boolean = true;
@Input()
liveSearchRoot: string = '-root-';
@Input()
liveSearchResultType: string = null;
@Input()
liveSearchResultSort: string = null;
@Input()
liveSearchMaxResults: number = 5;
@Input()
customSearchNode: QueryBody;
@Output()
submit: EventEmitter<any> = new EventEmitter();