UNPKG

@empathyco/x-components

Version:
50 lines (41 loc) 1.9 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [MyHistory](./x-components.myhistory.md) ## MyHistory variable The component renders the full history of user searched queries grouped by the day they were performed. **Signature:** ```typescript _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{ animation: { type: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; default: string; }; locale: { type: StringConstructor; default: string; }; queriesListClass: StringConstructor; }>, { hasHistoryQueries: import("vue").ComputedRef<boolean>; groupByDate: import("vue").ComputedRef<Dictionary<HistoryQueryType[]>>; historyQueries: import("vue").ComputedRef<HistoryQueryType[]>; formatTime: (timestamp: number) => string; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{ animation: { type: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; default: string; }; locale: { type: StringConstructor; default: string; }; queriesListClass: StringConstructor; }>> & Readonly<{}>, { animation: string | Function | Record<string, any>; locale: string; }, {}, { HistoryQuery: import("vue").DefineComponent<{}, {}, any>; BaseSuggestions: import("vue").DefineComponent<{}, {}, any>; }, {}, string, import("vue").ComponentProvideOptions, true, {}, any> ``` ## Remarks Allows the user to select one of them, emitting the needed events. A history query is just another type of suggestion that contains a query that the user has made in the past.