projects/m2-core/src/lib/shared/ui-components/search/search-input/search-input.component.ts
| selector | search-input |
| styleUrls | ./search-input.component.scss |
| templateUrl | ./search-input.component.html |
constructor(clientConfigService: ClientConfigService, globalModalsService: GlobalModalsService)
|
|||||||||
|
Parameters :
|
| areToolsCollapsed |
Type : boolean
|
| autocomplete |
Type : string
|
Default value : 'on'
|
| borderBottom |
Type : boolean
|
Default value : false
|
| debounceInMs |
Type : any
|
Default value : APP_SETTINGS.TEXT_SEARCH_DEBOUNCE_IN_MS
|
| getCustomPropositionsFn |
Type : (searchQuery?: string, noFilterOnValues?: boolean) => any
|
Default value : ((searchQuery?: string, noFilterOnValues?: boolean) => this.clientConfigService.getFullTextPropositions(searchQuery, this.suggestEntityType))
|
| highlightOnly |
Type : boolean
|
Default value : true
|
| inputNameAttr |
Type : string
|
Default value : 'sdi-search'
|
| inputStyle |
Type : CSSStyleDeclaration
|
| isAutoSearchEnabled |
Type : boolean
|
Default value : true
|
| placeholder |
Type : any
|
Default value : $localize`:@@namePlaceholder:наименование...`
|
| propositionSelectedFn |
Type : function
|
| readonly |
Type : boolean
|
| reloadOnShow |
Type : boolean
|
Default value : true
|
| searchBtnName |
Type : any
|
Default value : $localize`:@@searchBtn:Найти`
|
| showSearchIcon |
Type : boolean
|
Default value : true
|
| showToggle |
Type : boolean
|
Default value : true
|
| showTools |
Type : boolean
|
| showVisibilityToggle |
Type : boolean
|
| styleClasses |
Type : string
|
| suggestEntityType |
Type : ModelEntityType
|
| tip |
Type : string
|
| helpRequested |
Type : EventEmitter
|
| termApplied |
Type : EventEmitter
|
| toolsToggled |
Type : EventEmitter
|
| Public focus |
focus()
|
|
Returns :
void
|
| focusHlInput |
focusHlInput()
|
|
Returns :
void
|
| forceSearch |
forceSearch()
|
|
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| onCustomPropositionSelected | ||||||
onCustomPropositionSelected(proposition: Proposition)
|
||||||
|
Custom propositions
Parameters :
Returns :
void
|
| onHlInputBlur |
onHlInputBlur()
|
|
Returns :
void
|
| onHlInputFocus |
onHlInputFocus()
|
|
Highlighted input
Returns :
void
|
| onIconMouseEnter | ||||||
onIconMouseEnter(event: MouseEvent)
|
||||||
|
Tip
Parameters :
Returns :
void
|
| onInputEnterKeyUp | ||||||
onInputEnterKeyUp(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onInputEscapeKeyUp | ||||||
onInputEscapeKeyUp(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onInputKeyDown | ||||||
onInputKeyDown(event: KeyboardEvent)
|
||||||
|
Parameters :
Returns :
void
|
| onSearchInput |
onSearchInput()
|
|
Returns :
void
|
| onVisibilityToggleClick |
onVisibilityToggleClick()
|
|
Returns :
void
|
| Public resetSearch | ||||||
resetSearch(emitTermAppliedEvent)
|
||||||
|
Parameters :
Returns :
void
|
| Public setTerm | ||||||
setTerm(term: string)
|
||||||
|
Parameters :
Returns :
void
|
| showCustomPropositions |
showCustomPropositions()
|
|
Returns :
void
|
| toggleTools | ||||||
toggleTools(event: MouseEvent)
|
||||||
|
Tools
Parameters :
Returns :
void
|
| customPropositionsDebounce |
Default value : APP_SETTINGS.QUICK_PROPOSITIONS_DEBOUNCE_IN_MS
|
|
Custom propositions |
| fakeFormAction |
Default value : Date.now()
|
| highlightedInputComponent |
Type : HighlightedInputComponent
|
Decorators :
@ViewChild(HighlightedInputComponent)
|
| inputRef |
Type : ElementRef<HTMLElement>
|
Decorators :
@ViewChild('inputRef')
|
| isHlInputFocused |
Type : boolean
|
| Public isVisible |
Type : boolean
|
| searchSubmitBtn |
Type : ElementRef
|
Decorators :
@ViewChild('searchSubmitBtn')
|
| term |
Type : string
|
Default value : ''
|
| valuePropositionsComponent |
Type : ValuePropositionsComponent
|
Decorators :
@ViewChild(ValuePropositionsComponent)
|
| visibilityToggleTitle |
getvisibilityToggleTitle()
|