UNPKG

@spartacus/storefront

Version:

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

22 lines (21 loc) 981 B
import { FormControl } from '@angular/forms'; import { OrderEntry, PromotionLocation } from '@spartacus/core'; import { ReplaySubject } from 'rxjs'; import { CartItemComponentOptions } from '../cart-item.component'; import { CartItemContext } from './cart-item-context.model'; import * as i0 from "@angular/core"; /** * Context source for `CartItemComponent`. * * `CartItemContext` should be injected instead in child components. */ export declare class CartItemContextSource implements CartItemContext { readonly compact$: ReplaySubject<boolean>; readonly readonly$: ReplaySubject<boolean>; readonly item$: ReplaySubject<OrderEntry>; readonly quantityControl$: ReplaySubject<FormControl>; readonly location$: ReplaySubject<PromotionLocation>; readonly options$: ReplaySubject<CartItemComponentOptions>; static ɵfac: i0.ɵɵFactoryDeclaration<CartItemContextSource, never>; static ɵprov: i0.ɵɵInjectableDeclaration<CartItemContextSource>; }