@ikas/storefront 0.0.58 → 0.0.59
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/index.es.js +3807 -3456
- package/build/index.js +3709 -3358
- package/build/models/data/product-filter/index.d.ts +17 -4
- package/build/models/ui/product-list/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SearchInputFilterListInput } from "../../../__generated__/global-types";
|
|
2
2
|
import { IkasImage } from "../image/index";
|
|
3
|
+
import { IkasProductList } from "../../ui/index";
|
|
3
4
|
export declare class IkasProductFilter {
|
|
4
5
|
id: string;
|
|
5
6
|
key: string;
|
|
@@ -11,16 +12,22 @@ export declare class IkasProductFilter {
|
|
|
11
12
|
values?: IkasApplicableProductFilterValue[] | null;
|
|
12
13
|
customValues?: string[] | null;
|
|
13
14
|
settings?: IkasProductFilterSettings | null;
|
|
14
|
-
|
|
15
|
+
private _numberRange?;
|
|
15
16
|
numberRangeLimit?: RangeValue | null;
|
|
16
17
|
numberRangeListOptions?: NumberRangeListOption[] | null;
|
|
17
|
-
|
|
18
|
+
private productList?;
|
|
19
|
+
constructor(data?: Partial<IkasProductFilter>, productList?: IkasProductList | undefined | null);
|
|
18
20
|
get isCustomValueFilter(): boolean;
|
|
19
21
|
get valueList(): string[];
|
|
20
22
|
get keyList(): string[];
|
|
21
23
|
get displayedValues(): IkasApplicableProductFilterValue[];
|
|
24
|
+
get numberRange(): RangeValue | null | undefined;
|
|
25
|
+
onFilterValueClick(filterValue: IkasApplicableProductFilterValue): void;
|
|
26
|
+
onNumberRangeClick(option: NumberRangeListOption): void;
|
|
27
|
+
onNumberRangeChange(numberRange: RangeValue | null): void;
|
|
22
28
|
clear(): void;
|
|
23
29
|
toInput(): SearchInputFilterListInput;
|
|
30
|
+
applyQueryParam(value: string): void;
|
|
24
31
|
private rangeToId;
|
|
25
32
|
}
|
|
26
33
|
export declare class IkasApplicableProductFilterValue {
|
|
@@ -34,7 +41,9 @@ export declare class IkasApplicableProductFilterValue {
|
|
|
34
41
|
private _isSelected?;
|
|
35
42
|
constructor(data?: Partial<IkasApplicableProductFilterValue>);
|
|
36
43
|
get isSelected(): boolean | undefined;
|
|
37
|
-
|
|
44
|
+
toJSON(): this & {
|
|
45
|
+
isSelected: boolean | undefined;
|
|
46
|
+
};
|
|
38
47
|
}
|
|
39
48
|
export declare class IkasProductFilterValue {
|
|
40
49
|
id: string;
|
|
@@ -81,8 +90,12 @@ declare class NumberRangeListOption {
|
|
|
81
90
|
from: number;
|
|
82
91
|
to: number | undefined | null;
|
|
83
92
|
key: string;
|
|
84
|
-
|
|
93
|
+
private _isSelected;
|
|
85
94
|
constructor(data: Partial<NumberRangeListOption>);
|
|
95
|
+
get isSelected(): boolean;
|
|
96
|
+
toJSON(): this & {
|
|
97
|
+
isSelected: boolean;
|
|
98
|
+
};
|
|
86
99
|
}
|
|
87
100
|
export declare function parseRangeStr(rangeStr: string): RangeValue;
|
|
88
101
|
export {};
|
|
@@ -44,9 +44,9 @@ export declare class IkasProductList {
|
|
|
44
44
|
private getFilters;
|
|
45
45
|
private applyQueryParamFilters;
|
|
46
46
|
private applyFacets;
|
|
47
|
+
private applyFilters;
|
|
47
48
|
clearFilters(): void;
|
|
48
|
-
|
|
49
|
-
getInitial: (queryParams?: URLSearchParams | undefined) => Promise<void>;
|
|
49
|
+
private getInitial;
|
|
50
50
|
getPrev: () => Promise<void>;
|
|
51
51
|
getNext: () => Promise<void>;
|
|
52
52
|
getPage: (page: number) => Promise<void>;
|
|
@@ -70,6 +70,7 @@ export declare class IkasProductList {
|
|
|
70
70
|
};
|
|
71
71
|
private getQueryParams;
|
|
72
72
|
private isBrowser;
|
|
73
|
+
private searchDebouncer;
|
|
73
74
|
}
|
|
74
75
|
export declare type IkasProductListParams = {
|
|
75
76
|
data?: IkasProductDetail[];
|