adm-super-search-modal-2
Advanced tools
Comparing version 0.0.83 to 0.0.84
@@ -7,1 +7,3 @@ export * from './instrument'; | ||
export * from './typography'; | ||
export * from './instruments-headers'; | ||
export * from './filters'; |
@@ -1,4 +0,5 @@ | ||
import { ISearchModalLabels, ISearchModalProps } from '../types'; | ||
import { ISearchQueryParams } from '..'; | ||
import { IInstrumentFilter, ISearchModalLabels, ISearchModalProps, TQueryExtendableFilters } from '../types'; | ||
import { ISearchInfoResponse } from '..'; | ||
export declare function getModalLabels(labels?: ISearchModalLabels): ISearchModalLabels; | ||
export declare function getTradeCompaniesFilter({ requestQueryTradeCompanies, requestQueryTypeId, requestQuerySubTypeId, requestQueryRelationType, }: ISearchModalProps): Partial<Pick<ISearchQueryParams, 'trade_companies' | 'type_id' | 'relation_type' | 'subtype_id'>>; | ||
export declare function getTradeCompaniesFilter({ requestQueryTradeCompanies, requestQueryTypeId, requestQuerySubTypeId, requestQueryRelationType, }: ISearchModalProps): TQueryExtendableFilters; | ||
export declare function prepareInstrumentTabs({ types }: ISearchInfoResponse): IInstrumentFilter[]; |
@@ -1,2 +0,2 @@ | ||
import { ISearchModalProps } from '../types'; | ||
import { IInstrumentFilter, ISearchModalProps } from '../types'; | ||
declare const _default: (options?: ISearchModalProps) => { | ||
@@ -53,2 +53,28 @@ instrumentsMaxCount: import("vue").Ref<number>; | ||
hasInitialError: import("vue").Ref<boolean>; | ||
instrumentFilters: import("vue").Ref<{ | ||
id: number; | ||
label: string; | ||
filter: { | ||
relation_type?: string | undefined; | ||
type_id?: number | undefined; | ||
subtype_id?: number | undefined; | ||
trade_companies?: { | ||
company_id: number; | ||
trade_type_id: number; | ||
}[] | undefined; | ||
}; | ||
}[]>; | ||
activeFilter: import("vue").Ref<{ | ||
id: number; | ||
label: string; | ||
filter: { | ||
relation_type?: string | undefined; | ||
type_id?: number | undefined; | ||
subtype_id?: number | undefined; | ||
trade_companies?: { | ||
company_id: number; | ||
trade_type_id: number; | ||
}[] | undefined; | ||
}; | ||
} | null>; | ||
init: () => Promise<void>; | ||
@@ -58,3 +84,4 @@ clearData: () => void; | ||
getSearchRequest: () => Promise<void>; | ||
setSelectedFilter: (filter: IInstrumentFilter) => Promise<void>; | ||
}; | ||
export default _default; |
@@ -21,2 +21,3 @@ import { ISearchQueryDocument } from './api'; | ||
"empty-state"?(_: {}): any; | ||
filters?(_: {}): any; | ||
"search-result"?(_: { | ||
@@ -23,0 +24,0 @@ foundInstruments: ISearchQueryDocument[]; |
@@ -54,1 +54,7 @@ import { IRecentlyViewedInstrument } from './utils'; | ||
} | ||
export type TQueryExtendableFilters = Partial<Pick<ISearchQueryParams, 'trade_companies' | 'type_id' | 'relation_type' | 'subtype_id'>>; | ||
export interface IInstrumentFilter { | ||
id: number; | ||
label: string; | ||
filter: TQueryExtendableFilters; | ||
} |
{ | ||
"name": "adm-super-search-modal-2", | ||
"version": "0.0.83", | ||
"version": "0.0.84", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
451349
47
8974