@liquidcommerce/elements-sdk 2.6.0-beta.26 → 2.6.0-beta.28
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/dist/index.esm.js +11367 -10554
- package/dist/types/constants/core.constant.d.ts +3 -3
- package/dist/types/elements-base-client.d.ts +3 -1
- package/dist/types/enums/index.d.ts +0 -1
- package/dist/types/interfaces/api/product-list.interface.d.ts +12 -5
- package/dist/types/interfaces/core.interface.d.ts +9 -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 +13 -0
- package/dist/types/modules/product-list/components/index.d.ts +3 -2
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +66 -36
- package/dist/types/modules/product-list/components/product-list-search.component.d.ts +22 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +57 -2
- package/dist/types/modules/product-list/product-list.component.d.ts +11 -37
- package/dist/types/{enums/cloud.enum.d.ts → modules/product-list/product-list.constants.d.ts} +20 -1
- package/dist/types/modules/product-list/product-list.interface.d.ts +8 -24
- package/package.json +4 -4
- package/umd/elements.js +1 -1
- 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-search.component.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/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/product-list/components/product-list-filters-subcomponents/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './product-list-apply-filter-button.component';
|
|
2
|
-
export * from './product-list-checkbox-filter.components';
|
|
3
|
-
export * from './product-list-delivery-options-filter.components';
|
|
4
|
-
export * from './product-list-price-filter.components';
|
|
5
|
-
export * from './product-list-search.component';
|
|
6
|
-
export * from './product-list-toggle-filters.components';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createApplyFiltersButton(onCloseDrawer: VoidFunction): HTMLElement;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface ICreateDeliveryOptionsFilterParams {
|
|
2
|
-
currentFilters?: {
|
|
3
|
-
deliveryOptions?: string;
|
|
4
|
-
personalized?: boolean;
|
|
5
|
-
preOrder?: boolean;
|
|
6
|
-
};
|
|
7
|
-
deliveryCollapsed: boolean;
|
|
8
|
-
isSameDayDeliveryDisabled: boolean;
|
|
9
|
-
onDeliveryOptionsChange?: (value: 'all' | 'shipping' | 'onDemand') => void;
|
|
10
|
-
onToggleCollapse: () => void;
|
|
11
|
-
}
|
|
12
|
-
export declare function createDeliveryOptionsFilter(params: ICreateDeliveryOptionsFilterParams): {
|
|
13
|
-
elements: HTMLElement[];
|
|
14
|
-
chevronContainer: HTMLElement;
|
|
15
|
-
deliveryOptionsList: HTMLElement;
|
|
16
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
export interface IProductListSearchParams {
|
|
3
|
-
searchTerm?: string;
|
|
4
|
-
handleInputChange?: (search: string) => void;
|
|
5
|
-
clearSearch?: VoidFunction;
|
|
6
|
-
}
|
|
7
|
-
export declare class ProductListSearchComponent extends BaseComponent<IProductListSearchParams> {
|
|
8
|
-
private searchInput?;
|
|
9
|
-
private clearButton?;
|
|
10
|
-
private readonly ALLOWED_CHARACTERS;
|
|
11
|
-
private readonly MAX_LENGTH;
|
|
12
|
-
get hostClasses(): string[];
|
|
13
|
-
protected template(): HTMLElement[];
|
|
14
|
-
private sanitizeInput;
|
|
15
|
-
private updateClearButtonVisibility;
|
|
16
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface ICreatePersonalizedFilterParams {
|
|
2
|
-
currentFilters?: {
|
|
3
|
-
personalized?: boolean;
|
|
4
|
-
deliveryOptions?: string;
|
|
5
|
-
};
|
|
6
|
-
isPersonalizationDisabled: boolean;
|
|
7
|
-
onPersonalizedChange?: (enabled: boolean) => void;
|
|
8
|
-
}
|
|
9
|
-
export interface ICreatePreOrderFilterParams {
|
|
10
|
-
currentFilters?: {
|
|
11
|
-
preOrder?: boolean;
|
|
12
|
-
deliveryOptions?: string;
|
|
13
|
-
};
|
|
14
|
-
isPreOrderDisabled: boolean;
|
|
15
|
-
onPreOrderChange?: (enabled: boolean) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare function createPersonalizedFilter(params: ICreatePersonalizedFilterParams): HTMLElement[];
|
|
18
|
-
export declare function createPreOrderFilter(params: ICreatePreOrderFilterParams): HTMLElement[];
|