@spartacus/cart
Version:
`@spartacus/cart` is a package that you can include in your application, which allows you to use various cart features.
31 lines (30 loc) • 1.51 kB
TypeScript
import { OnDestroy, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { ActiveCartService, Cart, EventService, GlobalMessageService } from '@spartacus/core';
import { Observable, Subscription } from 'rxjs';
import * as i0 from "@angular/core";
export declare class CartQuickOrderFormComponent implements OnInit, OnDestroy {
protected activeCartService: ActiveCartService;
protected eventService: EventService;
protected formBuilder: FormBuilder;
protected globalMessageService: GlobalMessageService;
quickOrderForm: FormGroup;
cartIsLoading$: Observable<boolean>;
cart$: Observable<Cart>;
min: number;
protected subscription: Subscription;
protected cartEventsSubscription: Subscription;
protected minQuantityValue: number;
constructor(activeCartService: ActiveCartService, eventService: EventService, formBuilder: FormBuilder, globalMessageService: GlobalMessageService);
ngOnInit(): void;
ngOnDestroy(): void;
applyQuickOrder(): void;
protected buildForm(): void;
protected watchQuantityChange(): void;
protected watchAddEntrySuccessEvent(): void;
protected watchAddEntryFailEvent(): void;
protected getValidCount(value: number): number;
protected resetForm(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<CartQuickOrderFormComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CartQuickOrderFormComponent, "cx-cart-quick-order-form", never, {}, {}, never, never>;
}