UNPKG

@spartacus/storefront

Version:

Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.

43 lines (42 loc) 1.7 kB
import { OnDestroy, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { PaginationModel, Product, ProductInterestEntryRelation, ProductInterestSearchResult, ProductService, TranslationService, UserInterestsService } from '@spartacus/core'; import * as i0 from "@angular/core"; interface ProductInterestSearchResultUI extends ProductInterestSearchResult { results?: (ProductInterestEntryRelation & { product$?: Observable<Product>; })[]; } export declare class MyInterestsComponent implements OnInit, OnDestroy { private productInterestService; private translationService; private productService; private DEFAULT_PAGE_SIZE; private sortMapping; sort: string; sortOptions: { code: string; selected: boolean; }[]; pagination: PaginationModel; interests$: Observable<ProductInterestSearchResultUI>; isRemoveDisabled$: Observable<boolean>; getInterestsloading$: Observable<boolean>; sortLabels: Observable<{ byNameAsc: string; byNameDesc: string; }>; constructor(productInterestService: UserInterestsService, translationService: TranslationService, productService: ProductService); ngOnInit(): void; private getSortLabels; private getProduct; removeInterest(relation: ProductInterestEntryRelation & { product$?: Observable<Product>; }): void; sortChange(sort: string): void; pageChange(page: number): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<MyInterestsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<MyInterestsComponent, "cx-my-interests", never, {}, {}, never, never>; } export {};