@ikas/storefront 0.0.52 → 0.0.54
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/build/__generated__/global-types.d.ts +17 -2
- package/build/api/product-search/__generated__/getProductFilterData.d.ts +9 -1
- package/build/index.es.js +7766 -7705
- package/build/index.js +7761 -7700
- package/build/models/data/category/index.d.ts +8 -2
- package/build/models/data/product-filter/index.d.ts +16 -0
- package/build/models/ui/product-list/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { IkasImage } from "../image/index";
|
|
2
2
|
import { IkasHTMLMetaData } from "../html-meta-data/index";
|
|
3
|
-
import { ISimpleCategoryPath } from "../simple-product/index";
|
|
4
3
|
export declare class IkasCategory {
|
|
5
4
|
id: string;
|
|
6
5
|
name: string;
|
|
7
6
|
parentId: string | null;
|
|
8
7
|
metaData?: IkasHTMLMetaData | null;
|
|
9
8
|
image?: IkasImage | null;
|
|
10
|
-
path:
|
|
9
|
+
path: IkasCategoryPath[];
|
|
11
10
|
constructor(data: Partial<IkasCategory>);
|
|
12
11
|
get href(): string;
|
|
13
12
|
}
|
|
13
|
+
export declare class IkasCategoryPath {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
slug?: string | null;
|
|
17
|
+
constructor(data: Partial<IkasCategoryPath>);
|
|
18
|
+
get href(): string;
|
|
19
|
+
}
|
|
@@ -10,6 +10,7 @@ export declare class IkasProductFilter {
|
|
|
10
10
|
isMultiSelect: boolean;
|
|
11
11
|
values?: IkasApplicableProductFilterValue[] | null;
|
|
12
12
|
customValues?: string[] | null;
|
|
13
|
+
settings?: IkasProductFilterSettings | null;
|
|
13
14
|
numberRange?: RangeValue | null;
|
|
14
15
|
numberRangeLimit?: RangeValue | null;
|
|
15
16
|
numberRangeListOptions?: NumberRangeListOption[] | null;
|
|
@@ -17,6 +18,7 @@ export declare class IkasProductFilter {
|
|
|
17
18
|
get isCustomValueFilter(): boolean;
|
|
18
19
|
get valueList(): string[];
|
|
19
20
|
get keyList(): string[];
|
|
21
|
+
get displayedValues(): IkasApplicableProductFilterValue[];
|
|
20
22
|
clear(): void;
|
|
21
23
|
toInput(): SearchInputFilterListInput;
|
|
22
24
|
private rangeToId;
|
|
@@ -28,6 +30,7 @@ export declare class IkasApplicableProductFilterValue {
|
|
|
28
30
|
colorCode?: string | null;
|
|
29
31
|
thumbnailImageId?: string | null;
|
|
30
32
|
thumbnailImage?: IkasImage | null;
|
|
33
|
+
resultCount?: number | null;
|
|
31
34
|
private _isSelected?;
|
|
32
35
|
constructor(data?: Partial<IkasApplicableProductFilterValue>);
|
|
33
36
|
get isSelected(): boolean | undefined;
|
|
@@ -39,6 +42,13 @@ export declare class IkasProductFilterValue {
|
|
|
39
42
|
valueList: string[];
|
|
40
43
|
constructor(data: IkasProductFilterValue);
|
|
41
44
|
}
|
|
45
|
+
export declare class IkasProductFilterSettings {
|
|
46
|
+
useAndFilter?: boolean | null;
|
|
47
|
+
showCollapsedOnDesktop: boolean;
|
|
48
|
+
showCollapsedOnMobile: boolean;
|
|
49
|
+
sortType: IkasProductFilterSortType;
|
|
50
|
+
constructor(data: Partial<IkasProductFilterSettings>);
|
|
51
|
+
}
|
|
42
52
|
export declare enum IkasProductFilterType {
|
|
43
53
|
ATTRIBUTE = "ATTRIBUTE",
|
|
44
54
|
BRAND = "BRAND",
|
|
@@ -56,6 +66,12 @@ export declare enum IkasProductFilterDisplayType {
|
|
|
56
66
|
NUMBER_RANGE = "NUMBER_RANGE",
|
|
57
67
|
SWATCH = "SWATCH"
|
|
58
68
|
}
|
|
69
|
+
export declare enum IkasProductFilterSortType {
|
|
70
|
+
ALPHABETICAL_ASC = "ALPHABETICAL_ASC",
|
|
71
|
+
ALPHABETICAL_DESC = "ALPHABETICAL_DESC",
|
|
72
|
+
PRODUCT_COUNT_ASC = "PRODUCT_COUNT_ASC",
|
|
73
|
+
PRODUCT_COUNT_DESC = "PRODUCT_COUNT_DESC"
|
|
74
|
+
}
|
|
59
75
|
export declare class RangeValue {
|
|
60
76
|
from: number;
|
|
61
77
|
to: number | undefined | null;
|
|
@@ -41,6 +41,7 @@ export declare class IkasProductList {
|
|
|
41
41
|
clear(): void;
|
|
42
42
|
private getFilters;
|
|
43
43
|
private applyQueryParamFilters;
|
|
44
|
+
private applyFacets;
|
|
44
45
|
applyFilters: () => Promise<void>;
|
|
45
46
|
getInitial: (queryParams?: URLSearchParams | undefined) => Promise<void>;
|
|
46
47
|
getPrev: () => Promise<void>;
|
|
@@ -56,8 +57,8 @@ export declare class IkasProductList {
|
|
|
56
57
|
searchKeyword: string;
|
|
57
58
|
initialized: boolean;
|
|
58
59
|
minPage: number | null | undefined;
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
filterBrandId: string | null | undefined;
|
|
61
|
+
filterCategoryId: string | null | undefined;
|
|
61
62
|
filters: IkasProductFilter[] | null | undefined;
|
|
62
63
|
recommendFor: string | null | undefined;
|
|
63
64
|
productListPropValue: IkasProductListPropValue;
|