@liquidcommerce/elements-sdk 2.6.0-beta.5 → 2.6.0-beta.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -2519
- package/dist/index.checkout.esm.js +15981 -0
- package/dist/index.esm.js +16550 -14599
- package/dist/ssr-stub.checkout.esm.js +18 -0
- package/dist/ssr-stub.esm.js +270 -0
- package/dist/types/auto-initialize/checkout.d.ts +2 -0
- package/dist/types/auto-initialize/shared-utils.d.ts +29 -0
- package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +15 -2
- package/dist/types/clients/builder.d.ts +3 -0
- package/dist/types/clients/checkout.d.ts +5 -0
- package/dist/types/{elements-client-helper.d.ts → clients/helpers.d.ts} +1 -1
- package/dist/types/clients/main.d.ts +3 -0
- package/dist/types/constants/core.constant.d.ts +2 -6
- package/dist/types/core/api/api-client.service.d.ts +19 -20
- package/dist/types/core/api/api-result.d.ts +19 -0
- package/dist/types/core/api/auth-client.service.d.ts +40 -13
- package/dist/types/core/api/http-client.service.d.ts +0 -1
- package/dist/types/core/base-component.service.d.ts +2 -1
- package/dist/types/core/client/actions/base-action.service.d.ts +15 -0
- package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
- package/dist/types/core/client/actions/client-cart-action.service.d.ts +37 -0
- package/dist/types/core/client/actions/client-checkout-action.service.d.ts +50 -0
- package/dist/types/core/client/actions/client-product-action.service.d.ts +12 -0
- package/dist/types/core/client/client-action.service.d.ts +6 -70
- package/dist/types/core/client/client-config.service.d.ts +5 -2
- package/dist/types/core/command/common-command.service.d.ts +2 -1
- package/dist/types/core/google-tag-manager.service.d.ts +4 -1
- package/dist/types/core/logger/logger.service.d.ts +1 -1
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +27 -64
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +45 -50
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +9 -4
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +16 -75
- package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
- package/dist/types/core/singleton-manager.service.d.ts +12 -8
- package/dist/types/core/store/interfaces/cart.interface.d.ts +16 -56
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +17 -108
- package/dist/types/core/store/interfaces/core.interface.d.ts +14 -3
- package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
- package/dist/types/core/store/interfaces/product-list.interface.d.ts +29 -0
- package/dist/types/core/store/interfaces/product.interface.d.ts +1 -0
- package/dist/types/core/store/store.constant.d.ts +5 -0
- package/dist/types/core/store/store.service.d.ts +1 -0
- package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
- package/dist/types/enums/core.enum.d.ts +39 -1
- package/dist/types/enums/index.d.ts +0 -1
- package/dist/types/index.checkout.d.ts +8 -0
- package/dist/types/index.checkout.umd.d.ts +4 -0
- package/dist/types/index.d.ts +6 -3
- package/dist/types/interfaces/api/cart.interface.d.ts +95 -0
- package/dist/types/interfaces/api/checkout.interface.d.ts +217 -0
- package/dist/types/interfaces/api/product-list.interface.d.ts +39 -0
- package/dist/types/interfaces/api/product.interface.d.ts +2 -3
- package/dist/types/interfaces/client.interface.d.ts +72 -0
- package/dist/types/interfaces/component.interface.d.ts +7 -0
- package/dist/types/interfaces/config.interface.d.ts +41 -0
- package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/checkout.interface.d.ts +2 -1
- package/dist/types/interfaces/configs/global.interface.d.ts +5 -3
- package/dist/types/interfaces/configs/index.d.ts +1 -0
- package/dist/types/interfaces/configs/product-list.interface.d.ts +42 -0
- package/dist/types/interfaces/configs/product.interface.d.ts +2 -1
- package/dist/types/interfaces/injection.interface.d.ts +47 -0
- package/dist/types/modules/address/address.command.d.ts +2 -1
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +4 -5
- package/dist/types/modules/cart/components/cart-body.component.d.ts +2 -1
- package/dist/types/modules/cart/components/cart-footer.component.d.ts +0 -1
- package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +0 -2
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +22 -9
- package/dist/types/modules/checkout/checkout.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +2 -2
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +3 -0
- package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
- package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +14 -1
- package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
- package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +2 -2
- package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
- package/dist/types/modules/checkout/constant.d.ts +3 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/components/product-image-carousel.component.d.ts +3 -0
- package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +3 -0
- package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +5 -2
- package/dist/types/modules/product/product.commands.d.ts +2 -3
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/components/card-components/index.d.ts +5 -0
- package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
- package/dist/types/modules/product-list/components/card-components/product-button.d.ts +9 -0
- package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +13 -0
- package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +9 -0
- package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +13 -0
- package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +14 -0
- package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-price-filter.components.d.ts → filter-components/product-list-price-filter.d.ts} +1 -1
- package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
- package/dist/types/modules/product-list/components/index.d.ts +7 -3
- package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +2 -1
- package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +57 -37
- package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
- package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +46 -0
- package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-search.component.d.ts → product-list-search.component.d.ts} +11 -4
- package/dist/types/modules/product-list/product-list-card.component.d.ts +34 -0
- package/dist/types/modules/product-list/product-list-filter.utils.d.ts +8 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +22 -8
- package/dist/types/modules/product-list/product-list.component.d.ts +10 -46
- package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
- package/dist/types/modules/product-list/product-list.interface.d.ts +12 -36
- package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
- package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
- package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -1
- package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +1 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +6 -1
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +5 -1
- package/dist/types/modules/ui-components/input/index.d.ts +0 -1
- package/dist/types/modules/ui-components/input/input.component.d.ts +8 -1
- package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
- package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
- package/dist/types/modules/ui-components/purchase-min-alert/index.d.ts +0 -1
- package/dist/types/modules/ui-components/ui.commands.d.ts +5 -1
- package/dist/types/ssr/stub.checkout.d.ts +6 -0
- package/dist/types/ssr/stub.d.ts +10 -0
- package/dist/types/static/icon/check.icon.d.ts +2 -0
- package/dist/types/static/icon/index.d.ts +1 -0
- package/dist/types/utils/dom-compat.d.ts +2 -0
- package/dist/types/utils/format.d.ts +0 -14
- package/dist/types/utils/product-selection.d.ts +16 -0
- package/dist/types/utils/product.d.ts +10 -0
- package/docs/v1/README.md +210 -0
- package/docs/v1/api/actions/address-actions.md +281 -0
- package/docs/v1/api/actions/cart-actions.md +337 -0
- package/docs/v1/api/actions/checkout-actions.md +387 -0
- package/docs/v1/api/actions/product-actions.md +115 -0
- package/docs/v1/api/client.md +482 -0
- package/docs/v1/api/configuration.md +1 -0
- package/docs/v1/api/injection-methods.md +247 -0
- package/docs/v1/api/typescript-types.md +1 -0
- package/docs/v1/api/ui-helpers.md +200 -0
- package/docs/v1/examples/advanced-patterns.md +96 -0
- package/docs/v1/examples/checkout-flow.md +91 -0
- package/docs/v1/examples/custom-theming.md +63 -0
- package/docs/v1/examples/multi-product-page.md +90 -0
- package/docs/v1/examples/simple-product-page.md +89 -0
- package/docs/v1/getting-started/concepts.md +507 -0
- package/docs/v1/getting-started/installation.md +328 -0
- package/docs/v1/getting-started/quick-start.md +405 -0
- package/docs/v1/guides/address-component.md +431 -0
- package/docs/v1/guides/best-practices.md +324 -0
- package/docs/v1/guides/cart-component.md +737 -0
- package/docs/v1/guides/checkout-component.md +672 -0
- package/docs/v1/guides/events.md +926 -0
- package/docs/v1/guides/product-component.md +686 -0
- package/docs/v1/guides/product-list-component.md +598 -0
- package/docs/v1/guides/theming.md +216 -0
- package/docs/v1/integration/angular.md +39 -0
- package/docs/v1/integration/laravel.md +41 -0
- package/docs/v1/integration/nextjs.md +69 -0
- package/docs/v1/integration/proxy-setup.md +89 -0
- package/docs/v1/integration/react.md +64 -0
- package/docs/v1/integration/vanilla-js.md +84 -0
- package/docs/v1/integration/vue.md +58 -0
- package/docs/v1/reference/browser-support.md +44 -0
- package/docs/v1/reference/error-handling.md +70 -0
- package/docs/v1/reference/performance.md +54 -0
- package/docs/v1/reference/troubleshooting.md +72 -0
- package/package.json +28 -17
- package/dist/types/elements-builder-client.d.ts +0 -2
- package/dist/types/elements-client.d.ts +0 -2
- package/dist/types/enums/cloud.enum.d.ts +0 -403
- package/dist/types/interfaces/cloud/cart.interface.d.ts +0 -132
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +0 -43
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -211
- package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
- package/dist/types/interfaces/cloud/index.d.ts +0 -5
- package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
- package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
- package/dist/types/interfaces/core.interface.d.ts +0 -111
- package/dist/types/modules/cart/cart.commands.helper.d.ts +0 -9
- package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +0 -37
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/index.d.ts +0 -6
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-apply-filter-button.component.d.ts +0 -1
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-delivery-options-filter.components.d.ts +0 -16
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-toggle-filters.components.d.ts +0 -18
- package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
- package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
- package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +0 -7
- package/dist/types/utils/helper.d.ts +0 -27
- package/docs/ACTIONS.md +0 -1300
- package/docs/BROWSER_SUPPORT.md +0 -279
- package/docs/CONFIGURATION.md +0 -853
- package/docs/DOCUMENTATION_INDEX.md +0 -311
- package/docs/EVENTS.md +0 -798
- package/docs/PROXY.md +0 -228
- package/docs/THEMING.md +0 -592
- package/docs/TROUBLESHOOTING.md +0 -793
- package/umd/elements.js +0 -1
- /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
- /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
- /package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-checkbox-filter.components.d.ts → filter-components/product-list-checkbox-filter.d.ts} +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
2
|
import type { IBaseCartEventData } from '@/core/pubsub/interfaces/cart.interface';
|
|
3
3
|
export interface AddItemParams {
|
|
4
|
-
upc: string;
|
|
5
4
|
fulfillmentId: string;
|
|
6
5
|
partNumber: string;
|
|
7
6
|
quantity: number;
|
|
@@ -9,17 +8,15 @@ export interface AddItemParams {
|
|
|
9
8
|
identifier: string;
|
|
10
9
|
}
|
|
11
10
|
export declare class CartCommands extends BaseCommand {
|
|
12
|
-
private readonly uiCommands;
|
|
13
|
-
private readonly checkoutCommands;
|
|
14
|
-
private readonly commonCommands;
|
|
15
11
|
constructor();
|
|
16
12
|
static getInstance(): CartCommands;
|
|
17
13
|
updateItemQuantity(itemId: string, delta: number): Promise<void>;
|
|
18
14
|
removeItem(itemId: string, isNotStandAlone?: boolean): Promise<void>;
|
|
19
15
|
updateItemEngraving(productItemId: string, engravingLines: string[]): Promise<void>;
|
|
20
16
|
addItem(params: AddItemParams): Promise<void>;
|
|
21
|
-
addPresaleItem(params: AddItemParams): Promise<void>;
|
|
22
17
|
handleGoToCheckout(): Promise<void>;
|
|
18
|
+
private trackBeginCheckout;
|
|
19
|
+
private resolveCheckoutRedirectUrl;
|
|
23
20
|
applyPromoCode(promoCode: string): Promise<void>;
|
|
24
21
|
removePromoCode(): Promise<void>;
|
|
25
22
|
rerenderCart(): void;
|
|
@@ -32,4 +29,6 @@ export declare class CartCommands extends BaseCommand {
|
|
|
32
29
|
private updateFulfillment;
|
|
33
30
|
private addNewFulfillmentAndRetailer;
|
|
34
31
|
private cleanupAfterItemRemoval;
|
|
32
|
+
private syncCartState;
|
|
33
|
+
private buildCartLoadedEventData;
|
|
35
34
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
|
-
|
|
2
|
+
import type { ICartComponent } from '@/interfaces/configs';
|
|
3
|
+
export declare class CartBodyComponent extends BaseComponent<null, ICartComponent> {
|
|
3
4
|
get hostClasses(): string[];
|
|
4
5
|
constructor();
|
|
5
6
|
private createEmptyCartElement;
|
|
@@ -12,7 +12,6 @@ export declare class CartFooterComponent extends BaseComponent<ICartFooterCompon
|
|
|
12
12
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
13
13
|
afterRender(): void;
|
|
14
14
|
private isAnythingLoading;
|
|
15
|
-
private hasUnmetMinimum;
|
|
16
15
|
private shouldDisableCheckout;
|
|
17
16
|
private updateCheckoutButtonState;
|
|
18
17
|
private updateSubtotalItemsCount;
|
|
@@ -6,7 +6,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
6
6
|
get hostClasses(): string[];
|
|
7
7
|
constructor();
|
|
8
8
|
private getFulfillmentId;
|
|
9
|
-
private getProductStore;
|
|
10
9
|
private handleItemsUpdate;
|
|
11
10
|
private setupItemElements;
|
|
12
11
|
private setupMinimumPurchaseAlert;
|
|
@@ -17,7 +16,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
17
16
|
private isAnyItemUpdating;
|
|
18
17
|
private checkAndUpdateLoadingState;
|
|
19
18
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
20
|
-
private hasFulfillmentFeesChanged;
|
|
21
19
|
private hasFulfillmentDataChanged;
|
|
22
20
|
protected afterRender(): void;
|
|
23
21
|
protected disconnected(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ICheckoutDetailsEventData } from '@/core/pubsub/interfaces/checkout.interface';
|
|
3
|
+
import type { ICheckoutPaymentMethodStore } from '@/core/store/interfaces/checkout.interface';
|
|
4
|
+
import type { ICheckoutBilling, ICheckoutCustomer, ICheckoutGiftRecipient } from '@/interfaces/api/checkout.interface';
|
|
5
|
+
import type { AddItemParams } from '@/modules/cart/cart.commands';
|
|
6
|
+
import type { PresaleExpiredReason } from '@/modules/checkout/components';
|
|
3
7
|
export declare class CheckoutCommands extends BaseCommand {
|
|
4
8
|
private readonly uiCommands;
|
|
5
|
-
private readonly commonCommands;
|
|
6
9
|
constructor();
|
|
7
10
|
static getInstance(): CheckoutCommands;
|
|
8
|
-
|
|
11
|
+
addPresaleItem(params: AddItemParams): Promise<void>;
|
|
12
|
+
loadCheckout(params: {
|
|
13
|
+
checkoutId?: string;
|
|
14
|
+
cartId?: string;
|
|
15
|
+
isForPresale?: boolean;
|
|
16
|
+
}): Promise<void>;
|
|
9
17
|
toggleIsGift(active?: boolean): Promise<void>;
|
|
10
18
|
toggleBillingSameAsShipping(active?: boolean): Promise<void>;
|
|
11
19
|
toggleMarketingPreferences(fieldName: 'canEmail' | 'canSms', active?: boolean): Promise<void>;
|
|
@@ -17,7 +25,10 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
17
25
|
applyGiftCard(code: string): Promise<void>;
|
|
18
26
|
removeGiftCard(code: string): Promise<void>;
|
|
19
27
|
clearGiftCardError(): Promise<void>;
|
|
20
|
-
|
|
28
|
+
showPresaleExpired(reason?: PresaleExpiredReason): void;
|
|
29
|
+
openCheckout(): void;
|
|
30
|
+
getReturnUrl(): string | null;
|
|
31
|
+
private resolveCheckoutPageUrl;
|
|
21
32
|
rerenderCheckout(): void;
|
|
22
33
|
updateCheckoutItemQuantity(itemId: string, delta: number): Promise<void>;
|
|
23
34
|
removeItemEngraving(productItemId: string): Promise<void>;
|
|
@@ -28,18 +39,18 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
28
39
|
clearCheckoutError(): Promise<void>;
|
|
29
40
|
editCustomerForm(): Promise<void>;
|
|
30
41
|
saveCustomerForm({ shippingAddressTwo, deliveryInstructions, customerData, }: {
|
|
31
|
-
customerData:
|
|
42
|
+
customerData: ICheckoutCustomer;
|
|
32
43
|
shippingAddressTwo: string;
|
|
33
44
|
deliveryInstructions: string;
|
|
34
45
|
}): Promise<void>;
|
|
35
46
|
editGiftRecipientForm(): Promise<void>;
|
|
36
|
-
saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }:
|
|
47
|
+
saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }: ICheckoutGiftRecipient & {
|
|
37
48
|
shippingAddressTwo: string;
|
|
38
49
|
deliveryInstructions: string;
|
|
39
50
|
}): Promise<void>;
|
|
40
51
|
editPaymentForm(): Promise<void>;
|
|
41
52
|
savePaymentForm({ billingFormData, paymentSession, }: {
|
|
42
|
-
billingFormData?:
|
|
53
|
+
billingFormData?: ICheckoutBilling;
|
|
43
54
|
paymentSession?: {
|
|
44
55
|
confirmationTokenId: string;
|
|
45
56
|
setupIntentId: string;
|
|
@@ -47,7 +58,9 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
47
58
|
}): Promise<void>;
|
|
48
59
|
checkoutComplete(): Promise<void>;
|
|
49
60
|
private updateStoreFromCheckoutResponse;
|
|
50
|
-
private
|
|
61
|
+
private syncFromItemUpdate;
|
|
62
|
+
private syncCheckoutState;
|
|
63
|
+
private refreshCheckout;
|
|
51
64
|
private dataForCheckoutPrepare;
|
|
52
|
-
|
|
65
|
+
getDetails(): ICheckoutDetailsEventData;
|
|
53
66
|
}
|
|
@@ -3,8 +3,10 @@ import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
|
3
3
|
export interface ICheckoutComponentParams {
|
|
4
4
|
checkoutId: string;
|
|
5
5
|
isIndependentComponent: boolean;
|
|
6
|
+
hideHeader: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare class CheckoutComponent extends BaseComponent<ICheckoutComponentParams, ICheckoutComponent> {
|
|
8
9
|
constructor();
|
|
9
10
|
protected template(): HTMLElement[];
|
|
11
|
+
private createHeader;
|
|
10
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ICheckoutBilling } from '@/interfaces/api/checkout.interface';
|
|
3
3
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
4
4
|
export interface ICheckoutBillingComponentParams {
|
|
5
|
-
isFormValid: (isValid: boolean, data:
|
|
5
|
+
isFormValid: (isValid: boolean, data: ICheckoutBilling) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare class CheckoutBillingComponent extends BaseComponent<ICheckoutBillingComponentParams, ICheckoutComponent> {
|
|
8
8
|
private billingData;
|
|
@@ -6,6 +6,9 @@ export interface ICheckoutCompletedComponentParams {
|
|
|
6
6
|
cardLast4: string;
|
|
7
7
|
customerEmail: string;
|
|
8
8
|
giftRecipientEmail: string | null;
|
|
9
|
+
checkoutToken?: string;
|
|
10
|
+
cartId?: string;
|
|
11
|
+
isCompleted?: boolean;
|
|
9
12
|
}
|
|
10
13
|
export declare class CheckoutCompletedComponent extends BaseComponent<ICheckoutCompletedComponentParams, ICheckoutComponent> {
|
|
11
14
|
get hostClasses(): string[];
|
|
@@ -2,6 +2,7 @@ import { BaseComponent } from '@/core/base-component.service';
|
|
|
2
2
|
export interface ICheckoutHeaderParams {
|
|
3
3
|
onClose?: () => void;
|
|
4
4
|
onBackToCart?: () => void;
|
|
5
|
+
isHostedCheckout?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare class CheckoutHeaderComponent extends BaseComponent<ICheckoutHeaderParams> {
|
|
7
8
|
get hostClasses(): string[];
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export declare class CheckoutItemsComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
+
private togglerElement;
|
|
5
|
+
private togglerButton;
|
|
6
|
+
private togglerLabel;
|
|
7
|
+
private itemsList;
|
|
4
8
|
get hostClasses(): string[];
|
|
5
9
|
constructor();
|
|
6
10
|
private createItemElement;
|
|
7
|
-
private getItemsListContainer;
|
|
8
|
-
private getTogglerLabel;
|
|
9
11
|
private getCurrentItemsMap;
|
|
10
12
|
private syncItemsWithStore;
|
|
11
|
-
private updateItemCount;
|
|
12
13
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
13
14
|
private handleToggle;
|
|
14
15
|
private setupToggler;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
export declare class CheckoutPresaleCountdownComponent extends BaseComponent<null> {
|
|
3
|
+
private static readonly DEFAULT_PRESALE_DURATION_SECONDS;
|
|
4
|
+
private static readonly ONE_MINUTE_THRESHOLD_SECONDS;
|
|
5
|
+
private static readonly COUNTDOWN_UPDATE_INTERVAL_MS;
|
|
3
6
|
private countdownInterval;
|
|
4
7
|
private expiresAt;
|
|
5
|
-
private
|
|
8
|
+
private initialDurationSeconds;
|
|
6
9
|
private rootElement;
|
|
7
10
|
private scrollHandler;
|
|
8
11
|
private scrollContainer;
|
|
@@ -11,16 +14,26 @@ export declare class CheckoutPresaleCountdownComponent extends BaseComponent<nul
|
|
|
11
14
|
get hostClasses(): string[];
|
|
12
15
|
constructor();
|
|
13
16
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
17
|
+
private resetCountdownState;
|
|
14
18
|
protected afterRender(): void;
|
|
15
19
|
protected disconnected(): void;
|
|
16
20
|
private setupDrawerScrollDetection;
|
|
21
|
+
private findScrollContainer;
|
|
22
|
+
private setScrolledState;
|
|
17
23
|
private isScrollable;
|
|
18
24
|
private cleanupScrollListener;
|
|
19
25
|
private updateExpiresAt;
|
|
20
26
|
private startCountdown;
|
|
21
27
|
private stopCountdown;
|
|
22
28
|
private updateCountdown;
|
|
29
|
+
private updateWarningState;
|
|
30
|
+
private updateTimerDisplay;
|
|
31
|
+
private updateProgressBar;
|
|
23
32
|
private formatTime;
|
|
24
33
|
private handleExpire;
|
|
25
34
|
protected template(): HTMLElement;
|
|
35
|
+
private createTextContainer;
|
|
36
|
+
private createHeader;
|
|
37
|
+
private createSubtitle;
|
|
38
|
+
private createProgressBar;
|
|
26
39
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
-
export
|
|
3
|
+
export type PresaleExpiredReason = 'time_expired' | 'items_unavailable';
|
|
4
|
+
export interface ICheckoutPresaleExpiredComponentParams {
|
|
5
|
+
reason: PresaleExpiredReason;
|
|
6
|
+
}
|
|
7
|
+
export declare class CheckoutPresaleExpiredComponent extends BaseComponent<ICheckoutPresaleExpiredComponentParams, ICheckoutComponent> {
|
|
4
8
|
private autoCloseInterval;
|
|
5
9
|
private autoCloseSeconds;
|
|
6
10
|
private autoCloseElement;
|
|
7
11
|
get hostClasses(): string[];
|
|
8
12
|
get hostAttributes(): Record<string, string>;
|
|
13
|
+
private isItemsUnavailable;
|
|
14
|
+
private isTimeExpired;
|
|
9
15
|
protected afterRender(): void;
|
|
10
16
|
protected disconnected(): void;
|
|
11
17
|
private handleExit;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SafeHTMLElement } from '@/utils/dom-compat';
|
|
1
2
|
declare global {
|
|
2
3
|
interface Window {
|
|
3
4
|
Stripe: any;
|
|
@@ -23,7 +24,7 @@ export interface IStripeFormStatus {
|
|
|
23
24
|
hasError: boolean;
|
|
24
25
|
errorMessage: string | null;
|
|
25
26
|
}
|
|
26
|
-
export declare class CheckoutStripeFormComponent extends
|
|
27
|
+
export declare class CheckoutStripeFormComponent extends SafeHTMLElement {
|
|
27
28
|
private _initialized;
|
|
28
29
|
private _stripe;
|
|
29
30
|
private _stripeElements;
|
|
@@ -6,8 +6,8 @@ export declare class CheckoutTipsComponent extends BaseComponent<null, ICheckout
|
|
|
6
6
|
constructor();
|
|
7
7
|
protected afterRender(): void;
|
|
8
8
|
private getTipSelection;
|
|
9
|
-
private
|
|
10
|
-
private
|
|
9
|
+
private getOnDemandFulfillments;
|
|
10
|
+
private getRetailerNameForFulfillment;
|
|
11
11
|
private handlePercentageSelect;
|
|
12
12
|
private handleFulfillmentTipInput;
|
|
13
13
|
private removeTipFromFulfillment;
|
|
@@ -7,8 +7,6 @@ export declare class CheckoutPcGcComponent extends BaseComponent<null, ICheckout
|
|
|
7
7
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
8
8
|
private updateAppliedGiftCards;
|
|
9
9
|
private createAppliedGiftCardElement;
|
|
10
|
-
private pcInputContainer;
|
|
11
|
-
private gcInputContainer;
|
|
12
10
|
private inputContainer;
|
|
13
11
|
private createErrorElement;
|
|
14
12
|
protected template(): HTMLElement[];
|
|
@@ -8,6 +8,7 @@ export declare const customerFormFields: {
|
|
|
8
8
|
readonly addressTwo: "addressTwo";
|
|
9
9
|
readonly company: "company";
|
|
10
10
|
};
|
|
11
|
+
export type CustomerFieldName = (typeof customerFormFields)[keyof typeof customerFormFields];
|
|
11
12
|
export declare const giftFormFields: {
|
|
12
13
|
readonly firstName: "firstName";
|
|
13
14
|
readonly lastName: "lastName";
|
|
@@ -16,6 +17,7 @@ export declare const giftFormFields: {
|
|
|
16
17
|
readonly addressTwo: "addressTwo";
|
|
17
18
|
readonly message: "message";
|
|
18
19
|
};
|
|
20
|
+
export type GiftFieldName = (typeof giftFormFields)[keyof typeof giftFormFields];
|
|
19
21
|
export declare const billingFormFields: {
|
|
20
22
|
readonly firstName: "firstName";
|
|
21
23
|
readonly lastName: "lastName";
|
|
@@ -28,3 +30,4 @@ export declare const billingFormFields: {
|
|
|
28
30
|
readonly state: "state";
|
|
29
31
|
readonly zipCode: "zipCode";
|
|
30
32
|
};
|
|
33
|
+
export type BillingFieldName = (typeof billingFormFields)[keyof typeof billingFormFields];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,6 +17,8 @@ export declare class ProductImageCarouselComponent extends BaseComponent<IImageC
|
|
|
17
17
|
private startX;
|
|
18
18
|
private currentTranslateX;
|
|
19
19
|
private translateX;
|
|
20
|
+
private boundDragMove;
|
|
21
|
+
private boundDragEnd;
|
|
20
22
|
constructor();
|
|
21
23
|
afterRender(): void;
|
|
22
24
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
@@ -26,6 +28,7 @@ export declare class ProductImageCarouselComponent extends BaseComponent<IImageC
|
|
|
26
28
|
private scrollToIndex;
|
|
27
29
|
private setupMainImageSwipe;
|
|
28
30
|
private setupGalleryDrag;
|
|
31
|
+
protected disconnected(): void;
|
|
29
32
|
private handleDragStart;
|
|
30
33
|
private handleDragMove;
|
|
31
34
|
private handleDragEnd;
|
|
@@ -13,6 +13,8 @@ export declare class ProductRetailersCarouselComponent extends BaseComponent<IPr
|
|
|
13
13
|
private startX;
|
|
14
14
|
private currentTranslateX;
|
|
15
15
|
private translateX;
|
|
16
|
+
private boundDragMove;
|
|
17
|
+
private boundDragEnd;
|
|
16
18
|
constructor();
|
|
17
19
|
afterRender(): void;
|
|
18
20
|
private cacheElements;
|
|
@@ -21,6 +23,7 @@ export declare class ProductRetailersCarouselComponent extends BaseComponent<IPr
|
|
|
21
23
|
private updateSelectedCard;
|
|
22
24
|
private scrollToIndex;
|
|
23
25
|
private setupDrag;
|
|
26
|
+
protected disconnected(): void;
|
|
24
27
|
private handleDragStart;
|
|
25
28
|
private handleDragMove;
|
|
26
29
|
private handleDragEnd;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import { type NavigationSourceType } from '@/enums';
|
|
2
3
|
import type { IProductComponent } from '@/interfaces/configs';
|
|
3
4
|
export interface IProductRetailersPopupListComponentParams {
|
|
4
5
|
productId: string;
|
|
6
|
+
navigationSource: NavigationSourceType;
|
|
7
|
+
slug?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare class ProductRetailersPopupListComponent extends BaseComponent<IProductRetailersPopupListComponentParams, IProductComponent> {
|
|
7
10
|
get hostClasses(): string[];
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
private get isProductListContext();
|
|
12
|
+
beforeSetupStoreWatchers(): void;
|
|
10
13
|
private onFulfillmentTabClick;
|
|
11
14
|
private onRetailerCardClick;
|
|
12
15
|
protected template(): HTMLElement[];
|
|
@@ -7,6 +7,7 @@ import { type AddItemParams } from '@/modules/cart/cart.commands';
|
|
|
7
7
|
export declare class ProductCommands extends BaseCommand {
|
|
8
8
|
private readonly uiCommands;
|
|
9
9
|
private readonly cartCommands;
|
|
10
|
+
private readonly checkoutCommands;
|
|
10
11
|
constructor();
|
|
11
12
|
static getInstance(): ProductCommands;
|
|
12
13
|
createProductInstance(productId: string, firstTime?: boolean): Promise<void>;
|
|
@@ -15,7 +16,7 @@ export declare class ProductCommands extends BaseCommand {
|
|
|
15
16
|
selectSize(productId: string, sizeId: string): Promise<void>;
|
|
16
17
|
selectFulfillment(productId: string, selectedFulfillmentId: string): Promise<void>;
|
|
17
18
|
updateQuantity(productId: string, delta: number): Promise<void>;
|
|
18
|
-
changeFulfillmentType(productId: string,
|
|
19
|
+
changeFulfillmentType(productId: string, newFulfillmentType: FulfillmentType): Promise<void>;
|
|
19
20
|
removeProduct(productId: string): Promise<void>;
|
|
20
21
|
openProductDrawer(productId: string, contentType: IProductDrawerContentConfig['type'], data?: Record<string, any>): Promise<void>;
|
|
21
22
|
closeProductDrawer(productId: string): Promise<void>;
|
|
@@ -23,6 +24,4 @@ export declare class ProductCommands extends BaseCommand {
|
|
|
23
24
|
addToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
24
25
|
addPresaleToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
25
26
|
productDataForEventFromStore(identifier: string): IBaseProductEventData;
|
|
26
|
-
private findFirstAvailableSize;
|
|
27
|
-
private loadProductStoreUpdate;
|
|
28
27
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IBadgesParams {
|
|
2
|
+
badges: Array<{
|
|
3
|
+
text: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
separatorText?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const createProductBadge: (name: string, className?: string) => HTMLElement;
|
|
9
|
+
export declare const createProductBadges: ({ badges, separatorText }: IBadgesParams) => HTMLElement;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IAddToCartButtonParams {
|
|
2
|
+
isPresale: boolean;
|
|
3
|
+
hasAvailability: boolean;
|
|
4
|
+
state: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
hasAddress: boolean;
|
|
7
|
+
onClick?: (e: MouseEvent) => void | Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare const createAddToCartButton: ({ isPresale, hasAvailability, state, disabled, hasAddress, onClick, }: IAddToCartButtonParams) => HTMLElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IPricePersonalizationSectionParams {
|
|
2
|
+
price: number;
|
|
3
|
+
showPrice: boolean;
|
|
4
|
+
hasPersonalization: boolean;
|
|
5
|
+
showPersonalization: boolean;
|
|
6
|
+
hasAddress: boolean;
|
|
7
|
+
wrapperClassName?: string;
|
|
8
|
+
priceClassName?: string;
|
|
9
|
+
personalizeClassName?: string;
|
|
10
|
+
personalizeText?: string;
|
|
11
|
+
onPersonalizeClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createPricePersonalizationSection: ({ price, showPrice, hasPersonalization, showPersonalization, hasAddress, wrapperClassName, priceClassName, personalizeClassName, personalizeText, onPersonalizeClick, }: IPricePersonalizationSectionParams) => HTMLElement | null;
|
package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PLCCardStyle } from 'interfaces/configs/product-list.interface';
|
|
2
|
+
export interface IQuantitySelectorParams {
|
|
3
|
+
initialQuantity: number;
|
|
4
|
+
minQuantity: number;
|
|
5
|
+
maxQuantity: number;
|
|
6
|
+
cardStyle: PLCCardStyle;
|
|
7
|
+
onChange: (quantity: number) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const createQuantitySelector: ({ initialQuantity, minQuantity, maxQuantity, cardStyle, onChange }: IQuantitySelectorParams) => HTMLElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IProductSizeStore } from 'core/store/interfaces/product.interface';
|
|
2
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
3
|
+
export interface IProductListSizeSelectorParams {
|
|
4
|
+
sizes: Record<string, IProductSizeStore>;
|
|
5
|
+
selectedSizeId: string | null;
|
|
6
|
+
onSelect?: (size: IProductSizeStore) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class ProductListSizeSelectorComponent extends BaseComponent<IProductListSizeSelectorParams> {
|
|
9
|
+
private onOutsideClick;
|
|
10
|
+
get hostClasses(): string[];
|
|
11
|
+
protected disconnected?(): void;
|
|
12
|
+
protected template(): HTMLElement[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './product-list-apply-filter-button';
|
|
2
|
+
export * from './product-list-checkbox-filter';
|
|
3
|
+
export * from './product-list-chip';
|
|
4
|
+
export * from './product-list-filters-chips';
|
|
5
|
+
export * from './product-list-fulfillment-filter';
|
|
6
|
+
export * from './product-list-price-filter';
|
|
7
|
+
export * from './product-list-toggle-filters';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createApplyFiltersButton(onApplyFilters: VoidFunction): HTMLElement;
|
package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IExtendedFilterSchema, IProductListFilters } from 'modules/product-list/product-list.interface';
|
|
2
|
+
export interface ICreateChipsContainerParams {
|
|
3
|
+
currentFilters?: IProductListFilters;
|
|
4
|
+
sanitizedFilters?: IExtendedFilterSchema[];
|
|
5
|
+
onRemoveFilter: (key: string, value: string) => void;
|
|
6
|
+
onClearAllFilters: VoidFunction;
|
|
7
|
+
}
|
|
8
|
+
export interface IActiveFilter {
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function createChipsContainer(params: ICreateChipsContainerParams): HTMLElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FULFILLMENT_OPTIONS } from 'modules/product-list/product-list.constants';
|
|
2
|
+
import type { IProductListFilters } from 'modules/product-list/product-list.interface';
|
|
3
|
+
export interface ICreateFulfillmentFilterParams {
|
|
4
|
+
currentFilters?: IProductListFilters;
|
|
5
|
+
deliveryCollapsed: boolean;
|
|
6
|
+
isSameDayDeliveryDisabled: boolean;
|
|
7
|
+
onFulfillmentOptionsChange?: (value: typeof FULFILLMENT_OPTIONS.ALL | typeof FULFILLMENT_OPTIONS.SHIPPING | typeof FULFILLMENT_OPTIONS.ON_DEMAND) => void;
|
|
8
|
+
onToggleCollapse: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createFulfillmentFilter(params: ICreateFulfillmentFilterParams): {
|
|
11
|
+
elements: HTMLElement[];
|
|
12
|
+
chevronContainer: HTMLElement;
|
|
13
|
+
fulfillmentList: HTMLElement;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IProductListFilters } from 'modules/product-list/product-list.interface';
|
|
2
|
+
export interface ICreateEngravingFilterParams {
|
|
3
|
+
currentFilters?: IProductListFilters;
|
|
4
|
+
isPersonalizationDisabled: boolean;
|
|
5
|
+
onEngravingChange?: (enabled: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function createEngravingFilter(params: ICreateEngravingFilterParams): HTMLElement[];
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '../product-list-card.component';
|
|
2
|
+
export * from './filter-components';
|
|
3
|
+
export * from './filter-components/product-list-apply-filter-button';
|
|
2
4
|
export * from './product-list-card-loading.component';
|
|
5
|
+
export * from './product-list-engraving.component';
|
|
3
6
|
export * from './product-list-filters.component';
|
|
4
|
-
export * from './product-list-
|
|
5
|
-
export * from './product-list-
|
|
7
|
+
export * from './product-list-product-engraving-lines.component';
|
|
8
|
+
export * from './product-list-product-pre-cart.component';
|
|
9
|
+
export * from './product-list-search.component';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { IProductListComponent } from 'interfaces/configs';
|
|
1
2
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
3
|
import type { IProductListComponentParams } from '@/modules/product-list/product-list.component';
|
|
3
|
-
export declare class ProductListCardLoadingComponent extends BaseComponent<IProductListComponentParams> {
|
|
4
|
+
export declare class ProductListCardLoadingComponent extends BaseComponent<IProductListComponentParams, IProductListComponent> {
|
|
4
5
|
get hostClasses(): string[];
|
|
5
6
|
private createSkeletonCard;
|
|
6
7
|
protected template(): HTMLElement[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseComponent } from 'core/base-component.service';
|
|
2
|
+
import type { IProductListComponent } from 'interfaces/configs';
|
|
3
|
+
import type { IEngravingFormComponentParams } from 'modules/ui-components/engraving';
|
|
4
|
+
interface IProductListEngravingParams extends IEngravingFormComponentParams {
|
|
5
|
+
slug: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class ProductListEngravingComponent extends BaseComponent<IProductListEngravingParams, IProductListComponent> {
|
|
8
|
+
private getListConfig;
|
|
9
|
+
protected template(): HTMLElement[];
|
|
10
|
+
private createHeader;
|
|
11
|
+
}
|
|
12
|
+
export {};
|