@searchstax-inc/searchstudio-ux-vue 4.2.13 → 4.2.19

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/@searchstax-inc/components/SearchstaxAnswerWidget.vue.d.ts +102 -28
  3. package/dist/@searchstax-inc/components/SearchstaxExternalPromotionsWidget.vue.d.ts +98 -2
  4. package/dist/@searchstax-inc/components/SearchstaxFacetsWidget.vue.d.ts +257 -43
  5. package/dist/@searchstax-inc/components/SearchstaxInputWidget.vue.d.ts +32 -54
  6. package/dist/@searchstax-inc/components/SearchstaxLocationWidget.vue.d.ts +111 -43
  7. package/dist/@searchstax-inc/components/SearchstaxPaginationWidget.vue.d.ts +189 -2
  8. package/dist/@searchstax-inc/components/SearchstaxRelatedSearchesWidget.vue.d.ts +100 -19
  9. package/dist/@searchstax-inc/components/SearchstaxResultWidget.vue.d.ts +21069 -27
  10. package/dist/@searchstax-inc/components/SearchstaxSearchFeedbackWidget.vue.d.ts +97 -2
  11. package/dist/@searchstax-inc/components/SearchstaxSortingWidget.vue.d.ts +98 -2
  12. package/dist/@searchstax-inc/components/SearchstaxWrapper.vue.d.ts +36 -143
  13. package/dist/@searchstax-inc/components/templates/SearchstaxAnswerWidgetTemplate.vue.d.ts +8 -8
  14. package/dist/@searchstax-inc/components/templates/SearchstaxExternalPromotionsWidgetTemplate.vue.d.ts +8 -8
  15. package/dist/@searchstax-inc/components/templates/SearchstaxFacetsWidgetDesktopTemplate.vue.d.ts +10 -8
  16. package/dist/@searchstax-inc/components/templates/SearchstaxFacetsWidgetMobileTemplate.vue.d.ts +10 -8
  17. package/dist/@searchstax-inc/components/templates/SearchstaxInputWidgetTemplate.vue.d.ts +6 -6
  18. package/dist/@searchstax-inc/components/templates/SearchstaxLocationWidgetTemplate.vue.d.ts +8 -8
  19. package/dist/@searchstax-inc/components/templates/SearchstaxLocationWidgetTemplateConfig.d.ts +13 -0
  20. package/dist/@searchstax-inc/components/templates/SearchstaxPaginationWidgetDefaultTemplate.vue.d.ts +8 -8
  21. package/dist/@searchstax-inc/components/templates/SearchstaxPaginationWidgetInfiniteScrollTemplate.vue.d.ts +5 -5
  22. package/dist/@searchstax-inc/components/templates/SearchstaxRelatedSearchesWidgetTemplate.vue.d.ts +8 -8
  23. package/dist/@searchstax-inc/components/templates/SearchstaxResultWidgetDefaultTemplate.vue.d.ts +8 -8
  24. package/dist/@searchstax-inc/components/templates/SearchstaxResultWidgetNoResultsTemplate.vue.d.ts +10 -10
  25. package/dist/@searchstax-inc/components/templates/SearchstaxSearchFeedbackWidgetTemplate.vue.d.ts +7 -7
  26. package/dist/@searchstax-inc/components/templates/SearchstaxSortingWidgetTemplate.vue.d.ts +8 -8
  27. package/dist/@searchstax-inc/main.d.ts +11 -11
  28. package/dist/@searchstax-inc/searchstudio-ux-vue.cjs +93 -93
  29. package/dist/@searchstax-inc/searchstudio-ux-vue.d.cts +11 -11
  30. package/dist/@searchstax-inc/searchstudio-ux-vue.d.mts +11 -11
  31. package/dist/@searchstax-inc/searchstudio-ux-vue.iife.js +93 -93
  32. package/dist/@searchstax-inc/searchstudio-ux-vue.mjs +6792 -6654
  33. package/dist/@searchstax-inc/stores/searchstaxStore.d.ts +3163 -3145
  34. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
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.19]
5
+ ### Bug Fixes
6
+ - Fixed facet pills for mobile view
7
+ - Fixed scroll being stuck after viewport change
8
+ - Addressed build vulnerabilities
9
+
4
10
  ## [4.2.13]
5
11
  ### Features
6
12
  - Improved caching of facets to make as little emselect calls as possible
@@ -1,30 +1,104 @@
1
- import type { PropType as __PropType } from 'vue';
2
- import type { IFeedbackWidgetProperties } from '@searchstax-inc/searchstudio-ux-js';
3
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- showMoreAfterWordCount: {
5
- type: __PropType<number>;
6
- required: false;
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
+ 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
+ externalPromotions: {
61
+ name: string;
62
+ id: number;
63
+ url: string;
64
+ description: string;
65
+ }[];
66
+ answer: string;
67
+ answerTruncated: string;
68
+ fullAnswerFormatted: string;
69
+ shouldShowAnswerLoadMore: boolean;
70
+ answerLoading: boolean;
71
+ shouldShowAnswer: boolean;
72
+ isInfiniteScroll: boolean;
73
+ percentageOfResultsLoaded: number;
74
+ firstSearchHappened: boolean;
75
+ shouldShowAnswerError: boolean;
76
+ sortOptions: {
77
+ key: string;
78
+ value: string;
79
+ }[];
80
+ selectedSortOption: string;
81
+ answerErrorMessage: string;
82
+ locationSearchEnabled: boolean;
83
+ locationSearchDistanceEnabled: boolean;
84
+ locationSearchDistanceValues: {
85
+ label: string;
86
+ value: string;
87
+ isSelected: boolean;
88
+ }[];
89
+ shouldShowLocationDistanceDropdown: boolean;
90
+ locationError: boolean;
7
91
  };
8
- feedbackwidget: {
9
- type: __PropType<IFeedbackWidgetProperties>;
10
- required: false;
92
+ showMore: (event: Event) => void;
93
+ };
94
+ type __VLS_Slots = {} & {
95
+ answer?: (props: typeof __VLS_4) => any;
96
+ };
97
+ 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>;
98
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
99
+ export default _default;
100
+ type __VLS_WithSlots<T, S> = T & {
101
+ new (): {
102
+ $slots: S;
11
103
  };
12
- testString: {
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;
104
+ };
@@ -1,2 +1,98 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _sfc_main;
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 type { PropType as __PropType } from 'vue';
2
- import type { IFacetData } from '@searchstax-inc/searchstudio-ux-js';
3
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- facetingType: {
5
- type: __PropType<"and" | "or" | "showUnavailable" | "tabs">;
6
- required: true;
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
- itemsPerPageDesktop: {
9
- type: __PropType<number>;
10
- required: true;
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
- itemsPerPageMobile: {
13
- type: __PropType<number>;
14
- required: true;
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
- specificFacets: {
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 type { PropType as __PropType } from 'vue';
2
- import type { ISearchstaxSuggestProps, ISearchstaxSuggestResponse, ISearchstaxLocation } from '@searchstax-inc/searchstudio-ux-js';
3
- declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
- afterAutosuggest: {
5
- type: __PropType<(result: ISearchstaxSuggestResponse) => ISearchstaxSuggestResponse>;
6
- required: false;
7
- };
8
- beforeAutosuggest: {
9
- type: __PropType<(props: ISearchstaxSuggestProps) => ISearchstaxSuggestProps | null>;
10
- required: false;
11
- };
12
- searchInputId: {
13
- type: __PropType<string>;
14
- required: false;
15
- };
16
- suggestAfterMinChars: {
17
- type: __PropType<number>;
18
- required: false;
19
- };
20
- locationDecode: {
21
- type: __PropType<(locationName: string) => Promise<ISearchstaxLocation>>;
22
- required: false;
23
- };
24
- locationDecodeCoordinatesToAddress: {
25
- type: __PropType<(lat: string, lon: string) => Promise<ISearchstaxLocation>>;
26
- required: false;
27
- };
28
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
- afterAutosuggest: {
30
- type: __PropType<(result: ISearchstaxSuggestResponse) => ISearchstaxSuggestResponse>;
31
- required: false;
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
+ };