@searchstax-inc/searchstudio-ux-vue 4.2.13 → 4.2.24
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/CHANGELOG.md +10 -0
- package/dist/@searchstax-inc/components/SearchstaxAnswerWidget.vue.d.ts +107 -28
- package/dist/@searchstax-inc/components/SearchstaxExternalPromotionsWidget.vue.d.ts +98 -2
- package/dist/@searchstax-inc/components/SearchstaxFacetsWidget.vue.d.ts +257 -43
- package/dist/@searchstax-inc/components/SearchstaxInputWidget.vue.d.ts +32 -54
- package/dist/@searchstax-inc/components/SearchstaxLocationWidget.vue.d.ts +111 -43
- package/dist/@searchstax-inc/components/SearchstaxPaginationWidget.vue.d.ts +189 -2
- package/dist/@searchstax-inc/components/SearchstaxRelatedSearchesWidget.vue.d.ts +100 -19
- package/dist/@searchstax-inc/components/SearchstaxResultWidget.vue.d.ts +21123 -27
- package/dist/@searchstax-inc/components/SearchstaxSearchFeedbackWidget.vue.d.ts +97 -2
- package/dist/@searchstax-inc/components/SearchstaxSortingWidget.vue.d.ts +98 -2
- package/dist/@searchstax-inc/components/SearchstaxWrapper.vue.d.ts +36 -143
- package/dist/@searchstax-inc/components/templates/SearchstaxAnswerWidgetTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxExternalPromotionsWidgetTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxFacetsWidgetDesktopTemplate.vue.d.ts +10 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxFacetsWidgetMobileTemplate.vue.d.ts +10 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxInputWidgetTemplate.vue.d.ts +6 -6
- package/dist/@searchstax-inc/components/templates/SearchstaxLocationWidgetTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxLocationWidgetTemplateConfig.d.ts +13 -0
- package/dist/@searchstax-inc/components/templates/SearchstaxPaginationWidgetDefaultTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxPaginationWidgetInfiniteScrollTemplate.vue.d.ts +5 -5
- package/dist/@searchstax-inc/components/templates/SearchstaxRelatedSearchesWidgetTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxResultWidgetDefaultTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/components/templates/SearchstaxResultWidgetNoResultsTemplate.vue.d.ts +10 -10
- package/dist/@searchstax-inc/components/templates/SearchstaxSearchFeedbackWidgetTemplate.vue.d.ts +7 -7
- package/dist/@searchstax-inc/components/templates/SearchstaxSortingWidgetTemplate.vue.d.ts +8 -8
- package/dist/@searchstax-inc/main.d.ts +11 -11
- package/dist/@searchstax-inc/searchstudio-ux-vue.cjs +116 -93
- package/dist/@searchstax-inc/searchstudio-ux-vue.d.cts +11 -11
- package/dist/@searchstax-inc/searchstudio-ux-vue.d.mts +11 -11
- package/dist/@searchstax-inc/searchstudio-ux-vue.iife.js +116 -93
- package/dist/@searchstax-inc/searchstudio-ux-vue.mjs +6934 -6654
- package/dist/@searchstax-inc/stores/searchstaxStore.d.ts +3217 -3145
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
3
|
All notable changes to the "searchstudio-ux-vue" project will be documented in this file.
|
|
4
|
+
## [4.2.24]
|
|
5
|
+
### Features
|
|
6
|
+
- Added mvp for conversation search on JS library
|
|
7
|
+
|
|
8
|
+
## [4.2.19]
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
- Fixed facet pills for mobile view
|
|
11
|
+
- Fixed scroll being stuck after viewport change
|
|
12
|
+
- Addressed build vulnerabilities
|
|
13
|
+
|
|
4
14
|
## [4.2.13]
|
|
5
15
|
### Features
|
|
6
16
|
- Improved caching of facets to make as little emselect calls as possible
|
|
@@ -1,30 +1,109 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { IFeedbackWidgetProperties } from '@searchstax-inc/searchstudio-ux-js';
|
|
2
|
+
interface Props {
|
|
3
|
+
showMoreAfterWordCount?: number;
|
|
4
|
+
feedbackwidget?: IFeedbackWidgetProperties;
|
|
5
|
+
testString?: string;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_4: {
|
|
8
|
+
answerData: {
|
|
9
|
+
showMoreButtonVisible: boolean;
|
|
10
|
+
isConversation?: boolean;
|
|
11
|
+
conversationMessages?: {
|
|
12
|
+
formattedMessage: string;
|
|
13
|
+
messageClass?: string;
|
|
14
|
+
}[];
|
|
15
|
+
currentPage: number;
|
|
16
|
+
totalResults: number;
|
|
17
|
+
resultsPerPage: number;
|
|
18
|
+
totalPages: number;
|
|
19
|
+
isFirstPage: boolean;
|
|
20
|
+
results: {
|
|
21
|
+
custom?: any;
|
|
22
|
+
ribbon: string | null;
|
|
23
|
+
paths: string | null;
|
|
24
|
+
url: string | null;
|
|
25
|
+
title: string | null;
|
|
26
|
+
titleTracking: string | null;
|
|
27
|
+
promoted: boolean | null;
|
|
28
|
+
thumbnail: string | null;
|
|
29
|
+
date: string | null;
|
|
30
|
+
snippet: string | null;
|
|
31
|
+
description: string | null;
|
|
32
|
+
uniqueId: string;
|
|
33
|
+
position: number;
|
|
34
|
+
distance: number | null;
|
|
35
|
+
unit: string | null;
|
|
36
|
+
unmappedFields: {
|
|
37
|
+
key: string;
|
|
38
|
+
value: string | string[] | boolean;
|
|
39
|
+
isImage?: boolean;
|
|
40
|
+
}[];
|
|
41
|
+
allFields: {
|
|
42
|
+
key: string;
|
|
43
|
+
value: string | string[] | boolean;
|
|
44
|
+
}[];
|
|
45
|
+
}[];
|
|
46
|
+
isLastPage: boolean;
|
|
47
|
+
hasResults: boolean;
|
|
48
|
+
hasResultsOrExternalPromotions: boolean;
|
|
49
|
+
searchExecuted: boolean;
|
|
50
|
+
searchingEverything: boolean;
|
|
51
|
+
hasRelatedSearches: boolean;
|
|
52
|
+
hasExternalPromotions: boolean;
|
|
53
|
+
startResultIndex: number;
|
|
54
|
+
endResultIndex: number;
|
|
55
|
+
searchTerm: string;
|
|
56
|
+
autoCorrectedQuery: string;
|
|
57
|
+
originalQuery: string;
|
|
58
|
+
relatedSearches: {
|
|
59
|
+
search_term: string;
|
|
60
|
+
related_search: string;
|
|
61
|
+
score: number;
|
|
62
|
+
last?: boolean;
|
|
63
|
+
position?: number;
|
|
64
|
+
}[];
|
|
65
|
+
externalPromotions: {
|
|
66
|
+
name: string;
|
|
67
|
+
id: number;
|
|
68
|
+
url: string;
|
|
69
|
+
description: string;
|
|
70
|
+
}[];
|
|
71
|
+
answer: string;
|
|
72
|
+
answerTruncated: string;
|
|
73
|
+
fullAnswerFormatted: string;
|
|
74
|
+
shouldShowAnswerLoadMore: boolean;
|
|
75
|
+
answerLoading: boolean;
|
|
76
|
+
shouldShowAnswer: boolean;
|
|
77
|
+
isInfiniteScroll: boolean;
|
|
78
|
+
percentageOfResultsLoaded: number;
|
|
79
|
+
firstSearchHappened: boolean;
|
|
80
|
+
shouldShowAnswerError: boolean;
|
|
81
|
+
sortOptions: {
|
|
82
|
+
key: string;
|
|
83
|
+
value: string;
|
|
84
|
+
}[];
|
|
85
|
+
selectedSortOption: string;
|
|
86
|
+
answerErrorMessage: string;
|
|
87
|
+
locationSearchEnabled: boolean;
|
|
88
|
+
locationSearchDistanceEnabled: boolean;
|
|
89
|
+
locationSearchDistanceValues: {
|
|
90
|
+
label: string;
|
|
91
|
+
value: string;
|
|
92
|
+
isSelected: boolean;
|
|
93
|
+
}[];
|
|
94
|
+
shouldShowLocationDistanceDropdown: boolean;
|
|
95
|
+
locationError: boolean;
|
|
7
96
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
97
|
+
showMore: (event: Event) => void;
|
|
98
|
+
};
|
|
99
|
+
type __VLS_Slots = {} & {
|
|
100
|
+
answer?: (props: typeof __VLS_4) => any;
|
|
101
|
+
};
|
|
102
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
103
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
104
|
+
export default _default;
|
|
105
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
11
108
|
};
|
|
12
|
-
|
|
13
|
-
type: __PropType<string>;
|
|
14
|
-
required: false;
|
|
15
|
-
};
|
|
16
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
-
showMoreAfterWordCount: {
|
|
18
|
-
type: __PropType<number>;
|
|
19
|
-
required: false;
|
|
20
|
-
};
|
|
21
|
-
feedbackwidget: {
|
|
22
|
-
type: __PropType<IFeedbackWidgetProperties>;
|
|
23
|
-
required: false;
|
|
24
|
-
};
|
|
25
|
-
testString: {
|
|
26
|
-
type: __PropType<string>;
|
|
27
|
-
required: false;
|
|
28
|
-
};
|
|
29
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
|
-
export default _sfc_main;
|
|
109
|
+
};
|
|
@@ -1,2 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { IExternalPromotion } from '@searchstax-inc/searchstudio-ux-js';
|
|
2
|
+
declare var __VLS_4: {
|
|
3
|
+
externalPromotionsData: {
|
|
4
|
+
externalPromotions: {
|
|
5
|
+
name: string;
|
|
6
|
+
id: number;
|
|
7
|
+
url: string;
|
|
8
|
+
description: string;
|
|
9
|
+
}[];
|
|
10
|
+
currentPage: number;
|
|
11
|
+
totalResults: number;
|
|
12
|
+
resultsPerPage: number;
|
|
13
|
+
totalPages: number;
|
|
14
|
+
isFirstPage: boolean;
|
|
15
|
+
results: {
|
|
16
|
+
custom?: any;
|
|
17
|
+
ribbon: string | null;
|
|
18
|
+
paths: string | null;
|
|
19
|
+
url: string | null;
|
|
20
|
+
title: string | null;
|
|
21
|
+
titleTracking: string | null;
|
|
22
|
+
promoted: boolean | null;
|
|
23
|
+
thumbnail: string | null;
|
|
24
|
+
date: string | null;
|
|
25
|
+
snippet: string | null;
|
|
26
|
+
description: string | null;
|
|
27
|
+
uniqueId: string;
|
|
28
|
+
position: number;
|
|
29
|
+
distance: number | null;
|
|
30
|
+
unit: string | null;
|
|
31
|
+
unmappedFields: {
|
|
32
|
+
key: string;
|
|
33
|
+
value: string | string[] | boolean;
|
|
34
|
+
isImage?: boolean;
|
|
35
|
+
}[];
|
|
36
|
+
allFields: {
|
|
37
|
+
key: string;
|
|
38
|
+
value: string | string[] | boolean;
|
|
39
|
+
}[];
|
|
40
|
+
}[];
|
|
41
|
+
isLastPage: boolean;
|
|
42
|
+
hasResults: boolean;
|
|
43
|
+
hasResultsOrExternalPromotions: boolean;
|
|
44
|
+
searchExecuted: boolean;
|
|
45
|
+
searchingEverything: boolean;
|
|
46
|
+
hasRelatedSearches: boolean;
|
|
47
|
+
hasExternalPromotions: boolean;
|
|
48
|
+
startResultIndex: number;
|
|
49
|
+
endResultIndex: number;
|
|
50
|
+
searchTerm: string;
|
|
51
|
+
autoCorrectedQuery: string;
|
|
52
|
+
originalQuery: string;
|
|
53
|
+
relatedSearches: {
|
|
54
|
+
search_term: string;
|
|
55
|
+
related_search: string;
|
|
56
|
+
score: number;
|
|
57
|
+
last?: boolean;
|
|
58
|
+
position?: number;
|
|
59
|
+
}[];
|
|
60
|
+
answer: string;
|
|
61
|
+
answerTruncated: string;
|
|
62
|
+
fullAnswerFormatted: string;
|
|
63
|
+
shouldShowAnswerLoadMore: boolean;
|
|
64
|
+
answerLoading: boolean;
|
|
65
|
+
shouldShowAnswer: boolean;
|
|
66
|
+
isInfiniteScroll: boolean;
|
|
67
|
+
percentageOfResultsLoaded: number;
|
|
68
|
+
firstSearchHappened: boolean;
|
|
69
|
+
shouldShowAnswerError: boolean;
|
|
70
|
+
sortOptions: {
|
|
71
|
+
key: string;
|
|
72
|
+
value: string;
|
|
73
|
+
}[];
|
|
74
|
+
selectedSortOption: string;
|
|
75
|
+
answerErrorMessage: string;
|
|
76
|
+
locationSearchEnabled: boolean;
|
|
77
|
+
locationSearchDistanceEnabled: boolean;
|
|
78
|
+
locationSearchDistanceValues: {
|
|
79
|
+
label: string;
|
|
80
|
+
value: string;
|
|
81
|
+
isSelected: boolean;
|
|
82
|
+
}[];
|
|
83
|
+
shouldShowLocationDistanceDropdown: boolean;
|
|
84
|
+
locationError: boolean;
|
|
85
|
+
};
|
|
86
|
+
trackClick: (externalPromotion: IExternalPromotion, event: Event) => void;
|
|
87
|
+
};
|
|
88
|
+
type __VLS_Slots = {} & {
|
|
89
|
+
externalPromotions?: (props: typeof __VLS_4) => any;
|
|
90
|
+
};
|
|
91
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -1,46 +1,260 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { IFacetValueData, IFacetData, IFacetValue } from '@searchstax-inc/searchstudio-ux-js';
|
|
2
|
+
interface Props {
|
|
3
|
+
facetingType: "and" | "or" | "showUnavailable" | "tabs";
|
|
4
|
+
itemsPerPageDesktop: number;
|
|
5
|
+
itemsPerPageMobile: number;
|
|
6
|
+
specificFacets?: string[];
|
|
7
|
+
beforeFacetsRender?: (facetsTemplateDataDesktop: IFacetData[]) => IFacetData[];
|
|
8
|
+
}
|
|
9
|
+
declare var __VLS_9: {
|
|
10
|
+
facetsTemplateDataDesktop: {
|
|
11
|
+
facets: {
|
|
12
|
+
values: ({
|
|
13
|
+
value: string;
|
|
14
|
+
type: "checkbox";
|
|
15
|
+
parentName: string;
|
|
16
|
+
count: number;
|
|
17
|
+
} | {
|
|
18
|
+
valueFrom: string;
|
|
19
|
+
type: "range";
|
|
20
|
+
valueTo: string;
|
|
21
|
+
parentName: string;
|
|
22
|
+
count: number;
|
|
23
|
+
})[];
|
|
24
|
+
showingAllFacets?: boolean;
|
|
25
|
+
hasMoreFacets?: boolean;
|
|
26
|
+
name: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}[];
|
|
29
|
+
isMobile?: boolean;
|
|
30
|
+
currentPage: number;
|
|
31
|
+
totalResults: number;
|
|
32
|
+
resultsPerPage: number;
|
|
33
|
+
totalPages: number;
|
|
34
|
+
isFirstPage: boolean;
|
|
35
|
+
results: {
|
|
36
|
+
custom?: any;
|
|
37
|
+
ribbon: string | null;
|
|
38
|
+
paths: string | null;
|
|
39
|
+
url: string | null;
|
|
40
|
+
title: string | null;
|
|
41
|
+
titleTracking: string | null;
|
|
42
|
+
promoted: boolean | null;
|
|
43
|
+
thumbnail: string | null;
|
|
44
|
+
date: string | null;
|
|
45
|
+
snippet: string | null;
|
|
46
|
+
description: string | null;
|
|
47
|
+
uniqueId: string;
|
|
48
|
+
position: number;
|
|
49
|
+
distance: number | null;
|
|
50
|
+
unit: string | null;
|
|
51
|
+
unmappedFields: {
|
|
52
|
+
key: string;
|
|
53
|
+
value: string | string[] | boolean;
|
|
54
|
+
isImage?: boolean;
|
|
55
|
+
}[];
|
|
56
|
+
allFields: {
|
|
57
|
+
key: string;
|
|
58
|
+
value: string | string[] | boolean;
|
|
59
|
+
}[];
|
|
60
|
+
}[];
|
|
61
|
+
isLastPage: boolean;
|
|
62
|
+
hasResults: boolean;
|
|
63
|
+
hasResultsOrExternalPromotions: boolean;
|
|
64
|
+
searchExecuted: boolean;
|
|
65
|
+
searchingEverything: boolean;
|
|
66
|
+
hasRelatedSearches: boolean;
|
|
67
|
+
hasExternalPromotions: boolean;
|
|
68
|
+
startResultIndex: number;
|
|
69
|
+
endResultIndex: number;
|
|
70
|
+
searchTerm: string;
|
|
71
|
+
autoCorrectedQuery: string;
|
|
72
|
+
originalQuery: string;
|
|
73
|
+
relatedSearches: {
|
|
74
|
+
search_term: string;
|
|
75
|
+
related_search: string;
|
|
76
|
+
score: number;
|
|
77
|
+
last?: boolean;
|
|
78
|
+
position?: number;
|
|
79
|
+
}[];
|
|
80
|
+
externalPromotions: {
|
|
81
|
+
name: string;
|
|
82
|
+
id: number;
|
|
83
|
+
url: string;
|
|
84
|
+
description: string;
|
|
85
|
+
}[];
|
|
86
|
+
answer: string;
|
|
87
|
+
answerTruncated: string;
|
|
88
|
+
fullAnswerFormatted: string;
|
|
89
|
+
shouldShowAnswerLoadMore: boolean;
|
|
90
|
+
answerLoading: boolean;
|
|
91
|
+
shouldShowAnswer: boolean;
|
|
92
|
+
isInfiniteScroll: boolean;
|
|
93
|
+
percentageOfResultsLoaded: number;
|
|
94
|
+
firstSearchHappened: boolean;
|
|
95
|
+
shouldShowAnswerError: boolean;
|
|
96
|
+
sortOptions: {
|
|
97
|
+
key: string;
|
|
98
|
+
value: string;
|
|
99
|
+
}[];
|
|
100
|
+
selectedSortOption: string;
|
|
101
|
+
answerErrorMessage: string;
|
|
102
|
+
locationSearchEnabled: boolean;
|
|
103
|
+
locationSearchDistanceEnabled: boolean;
|
|
104
|
+
locationSearchDistanceValues: {
|
|
105
|
+
label: string;
|
|
106
|
+
value: string;
|
|
107
|
+
isSelected: boolean;
|
|
108
|
+
}[];
|
|
109
|
+
shouldShowLocationDistanceDropdown: boolean;
|
|
110
|
+
locationError: boolean;
|
|
7
111
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
112
|
+
isNotDeactivated: (name: string) => boolean;
|
|
113
|
+
toggleFacetGroup: (name: string) => void;
|
|
114
|
+
isChecked: (facetValue: IFacetValueData) => boolean;
|
|
115
|
+
selectFacet: (index: string, event: Event, data: IFacetValueData, isInput: boolean) => void;
|
|
116
|
+
showMoreLessDesktop: (e: Event, data: IFacetData) => void;
|
|
117
|
+
facetContainers: any[];
|
|
118
|
+
onUpdateRefDesktop: (el: Element | any, facetValue: IFacetValueData) => any[];
|
|
119
|
+
onUpdateRef: (facets: {
|
|
120
|
+
facetValue: string;
|
|
121
|
+
element: Element;
|
|
122
|
+
}) => void;
|
|
123
|
+
}, __VLS_19: {
|
|
124
|
+
facetsTemplateDataMobile: {
|
|
125
|
+
facets: {
|
|
126
|
+
values: ({
|
|
127
|
+
value: string;
|
|
128
|
+
type: "checkbox";
|
|
129
|
+
parentName: string;
|
|
130
|
+
count: number;
|
|
131
|
+
} | {
|
|
132
|
+
valueFrom: string;
|
|
133
|
+
type: "range";
|
|
134
|
+
valueTo: string;
|
|
135
|
+
parentName: string;
|
|
136
|
+
count: number;
|
|
137
|
+
})[];
|
|
138
|
+
showingAllFacets?: boolean;
|
|
139
|
+
hasMoreFacets?: boolean;
|
|
140
|
+
name: string;
|
|
141
|
+
label: string;
|
|
142
|
+
}[];
|
|
143
|
+
isMobile?: boolean;
|
|
144
|
+
currentPage: number;
|
|
145
|
+
totalResults: number;
|
|
146
|
+
resultsPerPage: number;
|
|
147
|
+
totalPages: number;
|
|
148
|
+
isFirstPage: boolean;
|
|
149
|
+
results: {
|
|
150
|
+
custom?: any;
|
|
151
|
+
ribbon: string | null;
|
|
152
|
+
paths: string | null;
|
|
153
|
+
url: string | null;
|
|
154
|
+
title: string | null;
|
|
155
|
+
titleTracking: string | null;
|
|
156
|
+
promoted: boolean | null;
|
|
157
|
+
thumbnail: string | null;
|
|
158
|
+
date: string | null;
|
|
159
|
+
snippet: string | null;
|
|
160
|
+
description: string | null;
|
|
161
|
+
uniqueId: string;
|
|
162
|
+
position: number;
|
|
163
|
+
distance: number | null;
|
|
164
|
+
unit: string | null;
|
|
165
|
+
unmappedFields: {
|
|
166
|
+
key: string;
|
|
167
|
+
value: string | string[] | boolean;
|
|
168
|
+
isImage?: boolean;
|
|
169
|
+
}[];
|
|
170
|
+
allFields: {
|
|
171
|
+
key: string;
|
|
172
|
+
value: string | string[] | boolean;
|
|
173
|
+
}[];
|
|
174
|
+
}[];
|
|
175
|
+
isLastPage: boolean;
|
|
176
|
+
hasResults: boolean;
|
|
177
|
+
hasResultsOrExternalPromotions: boolean;
|
|
178
|
+
searchExecuted: boolean;
|
|
179
|
+
searchingEverything: boolean;
|
|
180
|
+
hasRelatedSearches: boolean;
|
|
181
|
+
hasExternalPromotions: boolean;
|
|
182
|
+
startResultIndex: number;
|
|
183
|
+
endResultIndex: number;
|
|
184
|
+
searchTerm: string;
|
|
185
|
+
autoCorrectedQuery: string;
|
|
186
|
+
originalQuery: string;
|
|
187
|
+
relatedSearches: {
|
|
188
|
+
search_term: string;
|
|
189
|
+
related_search: string;
|
|
190
|
+
score: number;
|
|
191
|
+
last?: boolean;
|
|
192
|
+
position?: number;
|
|
193
|
+
}[];
|
|
194
|
+
externalPromotions: {
|
|
195
|
+
name: string;
|
|
196
|
+
id: number;
|
|
197
|
+
url: string;
|
|
198
|
+
description: string;
|
|
199
|
+
}[];
|
|
200
|
+
answer: string;
|
|
201
|
+
answerTruncated: string;
|
|
202
|
+
fullAnswerFormatted: string;
|
|
203
|
+
shouldShowAnswerLoadMore: boolean;
|
|
204
|
+
answerLoading: boolean;
|
|
205
|
+
shouldShowAnswer: boolean;
|
|
206
|
+
isInfiniteScroll: boolean;
|
|
207
|
+
percentageOfResultsLoaded: number;
|
|
208
|
+
firstSearchHappened: boolean;
|
|
209
|
+
shouldShowAnswerError: boolean;
|
|
210
|
+
sortOptions: {
|
|
211
|
+
key: string;
|
|
212
|
+
value: string;
|
|
213
|
+
}[];
|
|
214
|
+
selectedSortOption: string;
|
|
215
|
+
answerErrorMessage: string;
|
|
216
|
+
locationSearchEnabled: boolean;
|
|
217
|
+
locationSearchDistanceEnabled: boolean;
|
|
218
|
+
locationSearchDistanceValues: {
|
|
219
|
+
label: string;
|
|
220
|
+
value: string;
|
|
221
|
+
isSelected: boolean;
|
|
222
|
+
}[];
|
|
223
|
+
shouldShowLocationDistanceDropdown: boolean;
|
|
224
|
+
locationError: boolean;
|
|
11
225
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
226
|
+
selectedFacetsCheckboxes: {
|
|
227
|
+
value: string;
|
|
228
|
+
type: "checkbox";
|
|
229
|
+
parentName: string;
|
|
230
|
+
count: number;
|
|
231
|
+
}[];
|
|
232
|
+
isNotDeactivated: (name: string) => boolean;
|
|
233
|
+
toggleFacetGroup: (name: string) => void;
|
|
234
|
+
isChecked: (facetValue: IFacetValueData) => boolean;
|
|
235
|
+
selectFacet: (index: string, event: Event, data: IFacetValueData, isInput: boolean) => void;
|
|
236
|
+
showMoreLessDesktop: (e: Event, data: IFacetData) => void;
|
|
237
|
+
facetContainers: any[];
|
|
238
|
+
openOverlay: () => void;
|
|
239
|
+
unselectFacet: (facet: IFacetValue) => void;
|
|
240
|
+
unselectAll: () => void;
|
|
241
|
+
closeOverlay: () => void;
|
|
242
|
+
onUpdateRefMobile: (el: Element | any, facetValue: IFacetValueData) => any[];
|
|
243
|
+
onUpdateRef: (facets: {
|
|
244
|
+
facetValue: string;
|
|
245
|
+
element: Element;
|
|
246
|
+
}) => void;
|
|
247
|
+
};
|
|
248
|
+
type __VLS_Slots = {} & {
|
|
249
|
+
desktopFacets?: (props: typeof __VLS_9) => any;
|
|
250
|
+
} & {
|
|
251
|
+
mobileFacets?: (props: typeof __VLS_19) => any;
|
|
252
|
+
};
|
|
253
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
254
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
255
|
+
export default _default;
|
|
256
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
257
|
+
new (): {
|
|
258
|
+
$slots: S;
|
|
15
259
|
};
|
|
16
|
-
|
|
17
|
-
type: __PropType<string[]>;
|
|
18
|
-
required: false;
|
|
19
|
-
};
|
|
20
|
-
beforeFacetsRender: {
|
|
21
|
-
type: __PropType<(facetsTemplateDataDesktop: IFacetData[]) => IFacetData[]>;
|
|
22
|
-
required: false;
|
|
23
|
-
};
|
|
24
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
facetingType: {
|
|
26
|
-
type: __PropType<"and" | "or" | "showUnavailable" | "tabs">;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
itemsPerPageDesktop: {
|
|
30
|
-
type: __PropType<number>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
itemsPerPageMobile: {
|
|
34
|
-
type: __PropType<number>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
specificFacets: {
|
|
38
|
-
type: __PropType<string[]>;
|
|
39
|
-
required: false;
|
|
40
|
-
};
|
|
41
|
-
beforeFacetsRender: {
|
|
42
|
-
type: __PropType<(facetsTemplateDataDesktop: IFacetData[]) => IFacetData[]>;
|
|
43
|
-
required: false;
|
|
44
|
-
};
|
|
45
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
46
|
-
export default _sfc_main;
|
|
260
|
+
};
|
|
@@ -1,54 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
beforeAutosuggest: {
|
|
34
|
-
type: __PropType<(props: ISearchstaxSuggestProps) => ISearchstaxSuggestProps | null>;
|
|
35
|
-
required: false;
|
|
36
|
-
};
|
|
37
|
-
searchInputId: {
|
|
38
|
-
type: __PropType<string>;
|
|
39
|
-
required: false;
|
|
40
|
-
};
|
|
41
|
-
suggestAfterMinChars: {
|
|
42
|
-
type: __PropType<number>;
|
|
43
|
-
required: false;
|
|
44
|
-
};
|
|
45
|
-
locationDecode: {
|
|
46
|
-
type: __PropType<(locationName: string) => Promise<ISearchstaxLocation>>;
|
|
47
|
-
required: false;
|
|
48
|
-
};
|
|
49
|
-
locationDecodeCoordinatesToAddress: {
|
|
50
|
-
type: __PropType<(lat: string, lon: string) => Promise<ISearchstaxLocation>>;
|
|
51
|
-
required: false;
|
|
52
|
-
};
|
|
53
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
54
|
-
export default _sfc_main;
|
|
1
|
+
import { ISearchstaxSuggestProps, ISearchstaxSuggestResponse, ISearchstaxSuggestion, ISearchstaxLocation } from '@searchstax-inc/searchstudio-ux-js';
|
|
2
|
+
interface Props {
|
|
3
|
+
afterAutosuggest?: (result: ISearchstaxSuggestResponse) => ISearchstaxSuggestResponse;
|
|
4
|
+
beforeAutosuggest?: (props: ISearchstaxSuggestProps) => ISearchstaxSuggestProps | null;
|
|
5
|
+
searchInputId?: string;
|
|
6
|
+
suggestAfterMinChars?: number;
|
|
7
|
+
locationDecode?: (locationName: string) => Promise<ISearchstaxLocation>;
|
|
8
|
+
locationDecodeCoordinatesToAddress?: (lat: string, lon: string) => Promise<ISearchstaxLocation>;
|
|
9
|
+
}
|
|
10
|
+
declare var __VLS_4: {
|
|
11
|
+
suggestions: {
|
|
12
|
+
term: string;
|
|
13
|
+
weight: number;
|
|
14
|
+
payload: string;
|
|
15
|
+
}[];
|
|
16
|
+
onMouseClick: () => void;
|
|
17
|
+
onMouseOver: (suggestion: ISearchstaxSuggestion) => void;
|
|
18
|
+
onMouseLeave: () => void;
|
|
19
|
+
onClearClick: () => void;
|
|
20
|
+
hasInputValue: boolean;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
input?: (props: typeof __VLS_4) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|