@metabohub/forum-library
Version:
<!-- Put your badges here: --> [](https://forge.inrae.fr/metabohub/forvm/mth-forvm-lib/-/commits/dev) [ • 5.65 kB
TypeScript
import { SelectorType } from '../../core/forum-core/endpoint-search-query';
import { EndpointSearchResults } from '../../core/forum-core/endpoint-search-results';
import { Mesh } from '../../core/openapi-ts/models';
import { DisplayResult } from '../../core/forum-core/data-table';
declare const _sfc_main: import("vue").DefineComponent<{
"search-results"?: any;
}, {
endpointSearchResults: EndpointSearchResults;
display_loading_div: import("vue").Ref<boolean, boolean>;
display_results_div: import("vue").Ref<boolean, boolean>;
display_noresults_div: import("vue").Ref<boolean, boolean>;
result_found: import("vue").Ref<boolean, boolean>;
result_link: import("vue").Ref<string, string>;
result_label: import("vue").Ref<string, string>;
result_count: import("vue").Ref<number, number>;
result_identifier: import("vue").Ref<string, string>;
papers_count: import("vue").Ref<number, number>;
displayedColumns: string[];
raw_res: any[];
showDialog: import("vue").Ref<boolean, boolean>;
enablePapersLink: import("vue").Ref<boolean, boolean>;
dialSearchType: import("vue").Ref<string, string>;
dialSearchID: import("vue").Ref<string, string>;
dialItemId: import("vue").Ref<string, string>;
filter: import("vue").Ref<string, string>;
headers: import("vue").Ref<any[], any[]>;
dataSource: DisplayResult[];
inputSearch: import("vue").Ref<any, any>;
}, {}, {}, {
runSearch(data: EndpointSearchResults): void;
updateLink(): void;
/**
* ASYNC: Function to get the data of a specific label
* Returns the label (or "ID(id)") in a Promise
* @param id ID of label to get (MeSH ID, Pubchem CID, Chemont ID, Chebi ID)
* @param s Type of label to get (MeSH, Pubchem, Chemont, Chebi)
*/
getSpecificLabel(id: string, s: SelectorType): Promise<any>;
updateDataTable(results: EndpointSearchResults): void;
constructURL(id_type: string, id: string): string;
identifyIdLabelRow(id_type: string, item: Mesh): [string, string];
identifyIdType(): string;
triggerFileDownload(): void;
openPapersModal(showDialog?: boolean, itemIdentifier?: string): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
"search-results"?: any;
}> & Readonly<{}>, {}, {}, {
MthForumLiteratureDisplay: import("vue").DefineComponent<{
searchType?: any;
searchId?: any;
itemId?: any;
}, {
display_loading_div: import("vue").Ref<boolean, boolean>;
display_results_div: import("vue").Ref<boolean, boolean>;
literatureSearchType: any;
literatureSearchId: any;
literatureItemId: any;
discoveryService: import("vue").Ref<{
url: string;
mimetype: string;
method: string;
cache: boolean;
logLevel: string;
batchProcessing: number;
pageSize: number;
discovery: null;
loadDiscovery: () => Promise<import("../../core/discovery-api/discovery.service").Discovery>;
emit: (event: import("../../core/discovery-api/eventdiscovery.service").EventDiscoveryService) => void;
on: (eventName: string, action: any) => import("rxjs").Subscription;
getConfiguration: () => string;
getLazyPagesPMIDs: (cid: string, meshid: string, config_str?: string) => Promise<any[]>;
getPMIDs: (lazyPage: any) => Promise<import("../../core/discovery-api/pmid").PMID[]>;
}, import("../../core/discovery-api/discovery.service").DiscoveryService | {
url: string;
mimetype: string;
method: string;
cache: boolean;
logLevel: string;
batchProcessing: number;
pageSize: number;
discovery: null;
loadDiscovery: () => Promise<import("../../core/discovery-api/discovery.service").Discovery>;
emit: (event: import("../../core/discovery-api/eventdiscovery.service").EventDiscoveryService) => void;
on: (eventName: string, action: any) => import("rxjs").Subscription;
getConfiguration: () => string;
getLazyPagesPMIDs: (cid: string, meshid: string, config_str?: string) => Promise<any[]>;
getPMIDs: (lazyPage: any) => Promise<import("../../core/discovery-api/pmid").PMID[]>;
}>;
progression: import("vue").Ref<number, number>;
laziestPages: any[];
pagesLength: import("vue").Ref<number, number>;
listOfPMIDs: import("../../core/discovery-api/pmid").PMID[];
pageSize: import("vue").Ref<number, number>;
currentPage: import("vue").Ref<number, number>;
headers: import("vue").Ref<any[], any[]>;
dataSource: import("vue").Ref<any[], any[]>;
footerProps: {
firstIcon: string;
lastIcon: string;
prevIcon: string;
nextIcon: string;
};
}, {}, {}, {
initDatatableContent(): void;
getAllPMIDs(): void;
getPMIDs(lp: any): void;
afterViewInit(): void;
handlePage(e: any): void;
initDataTableHeaders(): void;
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
searchType?: any;
searchId?: any;
itemId?: any;
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _sfc_main;