UNPKG

@spartacus/storefront

Version:

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

36 lines (35 loc) 1.63 kB
import { OnDestroy } from '@angular/core'; import { Order, OrderHistoryList, RoutingService, TranslationService, UserOrderService, UserReplenishmentOrderService } from '@spartacus/core'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * @deprecated since 4.2 - use order lib instead */ export declare class OrderHistoryComponent implements OnDestroy { protected routing: RoutingService; protected userOrderService: UserOrderService; protected translation: TranslationService; protected userReplenishmentOrderService: UserReplenishmentOrderService; constructor(routing: RoutingService, userOrderService: UserOrderService, translation: TranslationService, userReplenishmentOrderService: UserReplenishmentOrderService); private PAGE_SIZE; sortType: string; orders$: Observable<OrderHistoryList>; hasReplenishmentOrder$: Observable<boolean>; isLoaded$: Observable<boolean>; /** * When "Order Return" feature is enabled, this component becomes one tab in * TabParagraphContainerComponent. This can be read from TabParagraphContainer. */ tabTitleParam$: Observable<number>; ngOnDestroy(): void; changeSortCode(sortCode: string): void; pageChange(page: number): void; goToOrderDetail(order: Order): void; getSortLabels(): Observable<{ byDate: string; byOrderNumber: string; }>; private fetchOrders; static ɵfac: i0.ɵɵFactoryDeclaration<OrderHistoryComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<OrderHistoryComponent, "cx-order-history", never, {}, {}, never, never>; }