mirror of
https://github.com/flarum/core.git
synced 2025-08-13 03:44:32 +02:00
Bundled output for commit 3537f76eab
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
37
js/dist-typings/forum/states/GlobalSearchState.d.ts
vendored
Normal file
37
js/dist-typings/forum/states/GlobalSearchState.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import SearchState from './SearchState';
|
||||
declare type SearchParams = Record<string, string>;
|
||||
export default class GlobalSearchState extends SearchState {
|
||||
private initialValueSet;
|
||||
constructor(cachedSearches?: never[]);
|
||||
getValue(): string;
|
||||
protected intializeValue(): void;
|
||||
protected currPageProvidesSearch(): boolean;
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
getInitialSearch(): string;
|
||||
/**
|
||||
* Clear the search input and the current controller's active search.
|
||||
*/
|
||||
clear(): void;
|
||||
/**
|
||||
* Redirect to the index page without a search filter. This is called when the
|
||||
* 'x' is clicked in the search box in the header.
|
||||
*/
|
||||
protected clearInitialSearch(): void;
|
||||
/**
|
||||
* Get URL parameters that stick between filter changes.
|
||||
*
|
||||
* This can be used to generate a link that clears filters.
|
||||
*/
|
||||
stickyParams(): SearchParams;
|
||||
/**
|
||||
* Get parameters to be used in the current page.
|
||||
*/
|
||||
params(): SearchParams;
|
||||
/**
|
||||
* Redirect to the index page using the given sort parameter.
|
||||
*/
|
||||
changeSort(sort: string): void;
|
||||
}
|
||||
export {};
|
Reference in New Issue
Block a user