@searchstax-inc/searchstudio-ux-js 4.2.2 → 4.2.13
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 +13 -0
- package/README.md +2 -0
- package/dist/@searchstax-inc/searchstudio-ux-js.cjs +67 -64
- package/dist/@searchstax-inc/searchstudio-ux-js.d.mts +56 -46
- package/dist/@searchstax-inc/searchstudio-ux-js.d.ts +56 -46
- package/dist/@searchstax-inc/searchstudio-ux-js.iife.js +67 -64
- package/dist/@searchstax-inc/searchstudio-ux-js.mjs +68 -65
- package/dist/styles/mainTheme.css +47 -14
- package/dist/styles/mainTheme.css.map +1 -1
- package/dist/styles/scss/widgets/searchInput/style.scss +48 -13
- package/dist/templates.js +5 -3
- package/package.json +1 -1
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
|
-
export interface IFacet {
|
|
4
|
-
name: string;
|
|
5
|
-
label: string;
|
|
6
|
-
values: (IFacetValue | IFacetValueRange)[];
|
|
7
|
-
}
|
|
8
|
-
export interface IFacetValue {
|
|
9
|
-
value: string;
|
|
10
|
-
type: "checkbox";
|
|
11
|
-
parentName: string;
|
|
12
|
-
count: number;
|
|
13
|
-
}
|
|
14
|
-
export interface IFacetValueRange {
|
|
15
|
-
valueFrom: string;
|
|
16
|
-
type: "range";
|
|
17
|
-
valueTo: string;
|
|
18
|
-
parentName: string;
|
|
19
|
-
count: number;
|
|
20
|
-
}
|
|
21
|
-
export interface IFacetData extends IFacet {
|
|
22
|
-
values: (IFacetValue | IFacetValueRange)[];
|
|
23
|
-
showingAllFacets?: boolean;
|
|
24
|
-
hasMoreFacets?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface IFacetsTemplateData extends ISearchstaxParsedData {
|
|
27
|
-
facets: IFacetData[];
|
|
28
|
-
isMobile?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IFacetValueData extends IFacetValue {
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
}
|
|
33
3
|
export interface ISearchstaxParam {
|
|
34
4
|
q: string;
|
|
35
5
|
fl: string;
|
|
@@ -269,7 +239,6 @@ export interface ISearchstaxParsedData {
|
|
|
269
239
|
searchTerm: string;
|
|
270
240
|
autoCorrectedQuery: string;
|
|
271
241
|
originalQuery: string;
|
|
272
|
-
selectedFacets: (IFacetValue | IFacetValueRange)[];
|
|
273
242
|
relatedSearches: ISearchstaxRelatedSearchResult[];
|
|
274
243
|
externalPromotions: IExternalPromotion[];
|
|
275
244
|
answer: string;
|
|
@@ -399,6 +368,36 @@ export declare const enum ISearchstaxRenderEngine {
|
|
|
399
368
|
"react" = 2,
|
|
400
369
|
"angular" = 3
|
|
401
370
|
}
|
|
371
|
+
export interface IFacet {
|
|
372
|
+
name: string;
|
|
373
|
+
label: string;
|
|
374
|
+
values: (IFacetValue | IFacetValueRange)[];
|
|
375
|
+
}
|
|
376
|
+
export interface IFacetValue {
|
|
377
|
+
value: string;
|
|
378
|
+
type: "checkbox";
|
|
379
|
+
parentName: string;
|
|
380
|
+
count: number;
|
|
381
|
+
}
|
|
382
|
+
export interface IFacetValueRange {
|
|
383
|
+
valueFrom: string;
|
|
384
|
+
type: "range";
|
|
385
|
+
valueTo: string;
|
|
386
|
+
parentName: string;
|
|
387
|
+
count: number;
|
|
388
|
+
}
|
|
389
|
+
export interface IFacetData extends IFacet {
|
|
390
|
+
values: (IFacetValue | IFacetValueRange)[];
|
|
391
|
+
showingAllFacets?: boolean;
|
|
392
|
+
hasMoreFacets?: boolean;
|
|
393
|
+
}
|
|
394
|
+
export interface IFacetsTemplateData extends ISearchstaxParsedData {
|
|
395
|
+
facets: IFacetData[];
|
|
396
|
+
isMobile?: boolean;
|
|
397
|
+
}
|
|
398
|
+
export interface IFacetValueData extends IFacetValue {
|
|
399
|
+
disabled?: boolean;
|
|
400
|
+
}
|
|
402
401
|
export interface IPaginationData extends ISearchstaxParsedData {
|
|
403
402
|
nextPageLink: string;
|
|
404
403
|
previousPageLink: string;
|
|
@@ -460,6 +459,7 @@ export interface ISearchstaxSearchInputAutosuggestTemplateData {
|
|
|
460
459
|
}
|
|
461
460
|
export interface ISearchstaxSearchInputRenderData extends ISearchstaxParsedData {
|
|
462
461
|
locationEnabled: boolean;
|
|
462
|
+
hasInputValue: boolean;
|
|
463
463
|
}
|
|
464
464
|
export interface ISearchstaxLocationConfig {
|
|
465
465
|
templates?: ISearchstaxLocationConfigTemplates;
|
|
@@ -522,8 +522,6 @@ declare class DataCalculations {
|
|
|
522
522
|
get isInfiniteScroll(): boolean;
|
|
523
523
|
get answerErrorMessage(): string;
|
|
524
524
|
get searchExecuted(): boolean;
|
|
525
|
-
get selectedFacets(): (IFacetValue | IFacetValueRange)[];
|
|
526
|
-
get cachedANDFacets(): string;
|
|
527
525
|
get relatedSearches(): ISearchstaxRelatedSearchResult[];
|
|
528
526
|
get externalPromotions(): IExternalPromotion[];
|
|
529
527
|
get data(): ISearchstaxParsedData;
|
|
@@ -557,7 +555,11 @@ declare class Observable {
|
|
|
557
555
|
}
|
|
558
556
|
declare class SearchstaxSearchHelper {
|
|
559
557
|
cachedQuery: string;
|
|
558
|
+
cachedQueryOR: string;
|
|
559
|
+
cachedQueryTabs: string;
|
|
560
560
|
cachedANDFacets: string;
|
|
561
|
+
cachedORFacets: string;
|
|
562
|
+
cachedTabsFacets: string;
|
|
561
563
|
url: string;
|
|
562
564
|
relatedSearches: string;
|
|
563
565
|
suggester: string;
|
|
@@ -578,9 +580,9 @@ declare class SearchstaxSearchHelper {
|
|
|
578
580
|
generateFacetQuery(facets: ISearchstaxSearcObjectFacet[], isOrFaceting: boolean): string;
|
|
579
581
|
generateLocationQuery(location: ISearchstaxLocation): string;
|
|
580
582
|
getRelatedSearches(searchObject: ISearchObject, relatedSearchesUrl: string, relatedSearchesAPIKey: string, callback: (resp: ISearchstaxRelatedSearchesResponse) => void): void;
|
|
581
|
-
cacheFacets(
|
|
583
|
+
cacheFacets(facetingType?: "and" | "or" | "showUnavailable" | "tabs", initalCacheTypes?: ("and" | "or" | "showUnavailable" | "tabs")[]): Promise<void>;
|
|
582
584
|
private cacheFacetsCallback;
|
|
583
|
-
search(searchObject: ISearchObject, callback: (resp
|
|
585
|
+
search(searchObject: ISearchObject, callback: (resp?: ISearchstaxSearchResponse, facetingType?: "and" | "or" | "showUnavailable" | "tabs") => void, ignoreCancelation?: boolean, forceNotCorrected?: boolean, facetingType?: "and" | "or" | "showUnavailable" | "tabs"): void;
|
|
584
586
|
generateQueryParams(searchObject: ISearchObject, forceNotCorrected?: boolean): string;
|
|
585
587
|
startSSE(query: string, callback: (resp: string) => void): EventSource | void;
|
|
586
588
|
suggest(term: string, callback: (resp: ISearchstaxSuggestResponse) => void, queryParams: IAdditionalProp[]): void;
|
|
@@ -600,8 +602,9 @@ declare class DataLAyer {
|
|
|
600
602
|
$searchResultsMetadata: Observable;
|
|
601
603
|
$searchAutosuggest: Observable;
|
|
602
604
|
$searchFacets: Observable;
|
|
603
|
-
$
|
|
604
|
-
$
|
|
605
|
+
$searchFacetsCachedand: Observable;
|
|
606
|
+
$searchFacetsCachedor: Observable;
|
|
607
|
+
$searchFacetsCachedtabs: Observable;
|
|
605
608
|
$searchstaxConfig: Observable;
|
|
606
609
|
$autosuggestResults: Observable;
|
|
607
610
|
$itemsPerPage: Observable;
|
|
@@ -664,7 +667,8 @@ declare class DataLAyer {
|
|
|
664
667
|
setSearchObject(value: ISearchObject): void;
|
|
665
668
|
setSearchFacets(value: IFacet[]): void;
|
|
666
669
|
setSearchFacetsCached(value: IFacet[]): void;
|
|
667
|
-
|
|
670
|
+
setSearchFacetsCachedor(value: IFacet[]): void;
|
|
671
|
+
setSearchFacetsCachedtabs(value: IFacet[]): void;
|
|
668
672
|
setSearchRelatedSearches(value: ISearchstaxRelatedSearchResult[]): void;
|
|
669
673
|
setSearchExternalPromotions(value: IExternalPromotion[]): void;
|
|
670
674
|
setLanguage(value: string): void;
|
|
@@ -701,8 +705,9 @@ declare class DataLAyer {
|
|
|
701
705
|
get getAnswerData(): any;
|
|
702
706
|
get searchstaxConfig(): ISearchstaxConfig | null;
|
|
703
707
|
get searchFacets(): IFacet[] | null;
|
|
704
|
-
get
|
|
705
|
-
get
|
|
708
|
+
get searchFacetsCachedand(): IFacet[] | null;
|
|
709
|
+
get searchFacetsCachedtabs(): IFacet[] | null;
|
|
710
|
+
get searchFacetsCachedor(): IFacet[] | null;
|
|
706
711
|
get searchResults(): ISearchstaxParsedResult[] | null;
|
|
707
712
|
get searchTerm(): string;
|
|
708
713
|
get searchLocation(): string;
|
|
@@ -942,7 +947,6 @@ declare class SearchFacetsWidget {
|
|
|
942
947
|
routerHelper: RouterHelper;
|
|
943
948
|
cachedPhrase: string;
|
|
944
949
|
cachedANDFacets: string;
|
|
945
|
-
isCached: boolean;
|
|
946
950
|
overlayOpened: boolean;
|
|
947
951
|
facetPaginationStep: number;
|
|
948
952
|
facetPaginationStepMobile: number;
|
|
@@ -960,14 +964,13 @@ declare class SearchFacetsWidget {
|
|
|
960
964
|
};
|
|
961
965
|
focusedElement: HTMLInputElement | HTMLElement | null;
|
|
962
966
|
cachedData: IFacetsTemplateData | null;
|
|
963
|
-
cacheFacets: (
|
|
967
|
+
cacheFacets: (facetingType?: "and" | "or" | "showUnavailable" | "tabs") => void;
|
|
964
968
|
constructor(params: {
|
|
965
969
|
containerId: string;
|
|
966
970
|
config: ISearchstaxSearchFacetsConfig;
|
|
967
971
|
dataLayer: DataLAyer;
|
|
968
972
|
routerHelper: RouterHelper;
|
|
969
|
-
}, cacheFacets: (
|
|
970
|
-
get needCache(): boolean;
|
|
973
|
+
}, cacheFacets: (facetingType?: "and" | "or" | "showUnavailable" | "tabs") => void);
|
|
971
974
|
get needDisabling(): boolean;
|
|
972
975
|
private initializeSubscriptions;
|
|
973
976
|
extractFacetValue(data: IFacetValueData): ISearchstaxSearcObjectFacet;
|
|
@@ -987,6 +990,7 @@ declare class SearchFacetsWidget {
|
|
|
987
990
|
attachOnclickToShowMore(data: IFacetData, container: Element, isMobile?: boolean): void;
|
|
988
991
|
onShowMoreLessClick(e: Event, data: IFacetData, isMobile?: boolean): void;
|
|
989
992
|
private renderMainTemplate;
|
|
993
|
+
private get componentFacets();
|
|
990
994
|
generateSelectedFacetsData(): void;
|
|
991
995
|
createSelectedFacetsComponents(container: Element): void;
|
|
992
996
|
createClearFacetsComponents(container: Element): void;
|
|
@@ -1068,9 +1072,12 @@ declare class SearchInputWidget {
|
|
|
1068
1072
|
private containerId;
|
|
1069
1073
|
private currentInputValue;
|
|
1070
1074
|
autosuggestResults?: ISearchstaxSEARCHTERM;
|
|
1075
|
+
private suppressNextEnter;
|
|
1071
1076
|
private searchInput?;
|
|
1072
1077
|
private actionButton?;
|
|
1073
1078
|
private autosuggestContainer?;
|
|
1079
|
+
private clearButton?;
|
|
1080
|
+
private separatorIcon?;
|
|
1074
1081
|
private buttonState;
|
|
1075
1082
|
private selectedAutosuggestItem;
|
|
1076
1083
|
private suggestTrigger;
|
|
@@ -1086,6 +1093,7 @@ declare class SearchInputWidget {
|
|
|
1086
1093
|
private createAutosuggestContainer;
|
|
1087
1094
|
private getSuggestAfterValue;
|
|
1088
1095
|
private actionButtonInit;
|
|
1096
|
+
private updateClearButtonVisibility;
|
|
1089
1097
|
private attachSubscriptions;
|
|
1090
1098
|
private handleLoadingChange;
|
|
1091
1099
|
private handleSearchTermChange;
|
|
@@ -1093,6 +1101,7 @@ declare class SearchInputWidget {
|
|
|
1093
1101
|
selectPreviousAutosuggestItem(input: HTMLInputElement): void;
|
|
1094
1102
|
selectNextAutosuggestItem(): void;
|
|
1095
1103
|
resetAutosuggestSelection(): void;
|
|
1104
|
+
clearInput(): void;
|
|
1096
1105
|
markActiveAutosuggestItem(): void;
|
|
1097
1106
|
private inputKeyupEvent;
|
|
1098
1107
|
private autosuggestHandling;
|
|
@@ -1158,6 +1167,7 @@ declare class AnswersWidget {
|
|
|
1158
1167
|
renderFeedbackWidget: boolean;
|
|
1159
1168
|
clicked: boolean;
|
|
1160
1169
|
renderedWithShowMore: boolean;
|
|
1170
|
+
private showMoreListenerAttached;
|
|
1161
1171
|
constructor(params: {
|
|
1162
1172
|
containerId: string;
|
|
1163
1173
|
config: ISearchstaxAnswerConfig;
|
|
@@ -1167,7 +1177,7 @@ declare class AnswersWidget {
|
|
|
1167
1177
|
searchstaxFeedbackTextAreaOverride(): string;
|
|
1168
1178
|
initializeWidget(): void;
|
|
1169
1179
|
showMore(e: Event): void;
|
|
1170
|
-
private
|
|
1180
|
+
private attachShowMoreClickListener;
|
|
1171
1181
|
trackLinkClick(e: Event): void;
|
|
1172
1182
|
attachLinkTracking(): void;
|
|
1173
1183
|
private renderMainTemplate;
|
|
@@ -1213,7 +1223,7 @@ export declare class Searchstax {
|
|
|
1213
1223
|
searchInputWidget?: SearchInputWidget;
|
|
1214
1224
|
searchLocationWidget?: SearchLocationWidget;
|
|
1215
1225
|
searchResultsWidget?: SearchResultsWidget;
|
|
1216
|
-
searchFacetsWidget
|
|
1226
|
+
searchFacetsWidget: SearchFacetsWidget[];
|
|
1217
1227
|
searchPaginationWidget?: SearchPaginationWidget;
|
|
1218
1228
|
searchFeedbackWidget?: SearchFeedbackWidget;
|
|
1219
1229
|
searchSortingWidget?: SearchSortingWidget;
|
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
|
-
export interface IFacet {
|
|
4
|
-
name: string;
|
|
5
|
-
label: string;
|
|
6
|
-
values: (IFacetValue | IFacetValueRange)[];
|
|
7
|
-
}
|
|
8
|
-
export interface IFacetValue {
|
|
9
|
-
value: string;
|
|
10
|
-
type: "checkbox";
|
|
11
|
-
parentName: string;
|
|
12
|
-
count: number;
|
|
13
|
-
}
|
|
14
|
-
export interface IFacetValueRange {
|
|
15
|
-
valueFrom: string;
|
|
16
|
-
type: "range";
|
|
17
|
-
valueTo: string;
|
|
18
|
-
parentName: string;
|
|
19
|
-
count: number;
|
|
20
|
-
}
|
|
21
|
-
export interface IFacetData extends IFacet {
|
|
22
|
-
values: (IFacetValue | IFacetValueRange)[];
|
|
23
|
-
showingAllFacets?: boolean;
|
|
24
|
-
hasMoreFacets?: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface IFacetsTemplateData extends ISearchstaxParsedData {
|
|
27
|
-
facets: IFacetData[];
|
|
28
|
-
isMobile?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface IFacetValueData extends IFacetValue {
|
|
31
|
-
disabled?: boolean;
|
|
32
|
-
}
|
|
33
3
|
export interface ISearchstaxParam {
|
|
34
4
|
q: string;
|
|
35
5
|
fl: string;
|
|
@@ -269,7 +239,6 @@ export interface ISearchstaxParsedData {
|
|
|
269
239
|
searchTerm: string;
|
|
270
240
|
autoCorrectedQuery: string;
|
|
271
241
|
originalQuery: string;
|
|
272
|
-
selectedFacets: (IFacetValue | IFacetValueRange)[];
|
|
273
242
|
relatedSearches: ISearchstaxRelatedSearchResult[];
|
|
274
243
|
externalPromotions: IExternalPromotion[];
|
|
275
244
|
answer: string;
|
|
@@ -399,6 +368,36 @@ export declare const enum ISearchstaxRenderEngine {
|
|
|
399
368
|
"react" = 2,
|
|
400
369
|
"angular" = 3
|
|
401
370
|
}
|
|
371
|
+
export interface IFacet {
|
|
372
|
+
name: string;
|
|
373
|
+
label: string;
|
|
374
|
+
values: (IFacetValue | IFacetValueRange)[];
|
|
375
|
+
}
|
|
376
|
+
export interface IFacetValue {
|
|
377
|
+
value: string;
|
|
378
|
+
type: "checkbox";
|
|
379
|
+
parentName: string;
|
|
380
|
+
count: number;
|
|
381
|
+
}
|
|
382
|
+
export interface IFacetValueRange {
|
|
383
|
+
valueFrom: string;
|
|
384
|
+
type: "range";
|
|
385
|
+
valueTo: string;
|
|
386
|
+
parentName: string;
|
|
387
|
+
count: number;
|
|
388
|
+
}
|
|
389
|
+
export interface IFacetData extends IFacet {
|
|
390
|
+
values: (IFacetValue | IFacetValueRange)[];
|
|
391
|
+
showingAllFacets?: boolean;
|
|
392
|
+
hasMoreFacets?: boolean;
|
|
393
|
+
}
|
|
394
|
+
export interface IFacetsTemplateData extends ISearchstaxParsedData {
|
|
395
|
+
facets: IFacetData[];
|
|
396
|
+
isMobile?: boolean;
|
|
397
|
+
}
|
|
398
|
+
export interface IFacetValueData extends IFacetValue {
|
|
399
|
+
disabled?: boolean;
|
|
400
|
+
}
|
|
402
401
|
export interface IPaginationData extends ISearchstaxParsedData {
|
|
403
402
|
nextPageLink: string;
|
|
404
403
|
previousPageLink: string;
|
|
@@ -460,6 +459,7 @@ export interface ISearchstaxSearchInputAutosuggestTemplateData {
|
|
|
460
459
|
}
|
|
461
460
|
export interface ISearchstaxSearchInputRenderData extends ISearchstaxParsedData {
|
|
462
461
|
locationEnabled: boolean;
|
|
462
|
+
hasInputValue: boolean;
|
|
463
463
|
}
|
|
464
464
|
export interface ISearchstaxLocationConfig {
|
|
465
465
|
templates?: ISearchstaxLocationConfigTemplates;
|
|
@@ -522,8 +522,6 @@ declare class DataCalculations {
|
|
|
522
522
|
get isInfiniteScroll(): boolean;
|
|
523
523
|
get answerErrorMessage(): string;
|
|
524
524
|
get searchExecuted(): boolean;
|
|
525
|
-
get selectedFacets(): (IFacetValue | IFacetValueRange)[];
|
|
526
|
-
get cachedANDFacets(): string;
|
|
527
525
|
get relatedSearches(): ISearchstaxRelatedSearchResult[];
|
|
528
526
|
get externalPromotions(): IExternalPromotion[];
|
|
529
527
|
get data(): ISearchstaxParsedData;
|
|
@@ -557,7 +555,11 @@ declare class Observable {
|
|
|
557
555
|
}
|
|
558
556
|
declare class SearchstaxSearchHelper {
|
|
559
557
|
cachedQuery: string;
|
|
558
|
+
cachedQueryOR: string;
|
|
559
|
+
cachedQueryTabs: string;
|
|
560
560
|
cachedANDFacets: string;
|
|
561
|
+
cachedORFacets: string;
|
|
562
|
+
cachedTabsFacets: string;
|
|
561
563
|
url: string;
|
|
562
564
|
relatedSearches: string;
|
|
563
565
|
suggester: string;
|
|
@@ -578,9 +580,9 @@ declare class SearchstaxSearchHelper {
|
|
|
578
580
|
generateFacetQuery(facets: ISearchstaxSearcObjectFacet[], isOrFaceting: boolean): string;
|
|
579
581
|
generateLocationQuery(location: ISearchstaxLocation): string;
|
|
580
582
|
getRelatedSearches(searchObject: ISearchObject, relatedSearchesUrl: string, relatedSearchesAPIKey: string, callback: (resp: ISearchstaxRelatedSearchesResponse) => void): void;
|
|
581
|
-
cacheFacets(
|
|
583
|
+
cacheFacets(facetingType?: "and" | "or" | "showUnavailable" | "tabs", initalCacheTypes?: ("and" | "or" | "showUnavailable" | "tabs")[]): Promise<void>;
|
|
582
584
|
private cacheFacetsCallback;
|
|
583
|
-
search(searchObject: ISearchObject, callback: (resp
|
|
585
|
+
search(searchObject: ISearchObject, callback: (resp?: ISearchstaxSearchResponse, facetingType?: "and" | "or" | "showUnavailable" | "tabs") => void, ignoreCancelation?: boolean, forceNotCorrected?: boolean, facetingType?: "and" | "or" | "showUnavailable" | "tabs"): void;
|
|
584
586
|
generateQueryParams(searchObject: ISearchObject, forceNotCorrected?: boolean): string;
|
|
585
587
|
startSSE(query: string, callback: (resp: string) => void): EventSource | void;
|
|
586
588
|
suggest(term: string, callback: (resp: ISearchstaxSuggestResponse) => void, queryParams: IAdditionalProp[]): void;
|
|
@@ -600,8 +602,9 @@ declare class DataLAyer {
|
|
|
600
602
|
$searchResultsMetadata: Observable;
|
|
601
603
|
$searchAutosuggest: Observable;
|
|
602
604
|
$searchFacets: Observable;
|
|
603
|
-
$
|
|
604
|
-
$
|
|
605
|
+
$searchFacetsCachedand: Observable;
|
|
606
|
+
$searchFacetsCachedor: Observable;
|
|
607
|
+
$searchFacetsCachedtabs: Observable;
|
|
605
608
|
$searchstaxConfig: Observable;
|
|
606
609
|
$autosuggestResults: Observable;
|
|
607
610
|
$itemsPerPage: Observable;
|
|
@@ -664,7 +667,8 @@ declare class DataLAyer {
|
|
|
664
667
|
setSearchObject(value: ISearchObject): void;
|
|
665
668
|
setSearchFacets(value: IFacet[]): void;
|
|
666
669
|
setSearchFacetsCached(value: IFacet[]): void;
|
|
667
|
-
|
|
670
|
+
setSearchFacetsCachedor(value: IFacet[]): void;
|
|
671
|
+
setSearchFacetsCachedtabs(value: IFacet[]): void;
|
|
668
672
|
setSearchRelatedSearches(value: ISearchstaxRelatedSearchResult[]): void;
|
|
669
673
|
setSearchExternalPromotions(value: IExternalPromotion[]): void;
|
|
670
674
|
setLanguage(value: string): void;
|
|
@@ -701,8 +705,9 @@ declare class DataLAyer {
|
|
|
701
705
|
get getAnswerData(): any;
|
|
702
706
|
get searchstaxConfig(): ISearchstaxConfig | null;
|
|
703
707
|
get searchFacets(): IFacet[] | null;
|
|
704
|
-
get
|
|
705
|
-
get
|
|
708
|
+
get searchFacetsCachedand(): IFacet[] | null;
|
|
709
|
+
get searchFacetsCachedtabs(): IFacet[] | null;
|
|
710
|
+
get searchFacetsCachedor(): IFacet[] | null;
|
|
706
711
|
get searchResults(): ISearchstaxParsedResult[] | null;
|
|
707
712
|
get searchTerm(): string;
|
|
708
713
|
get searchLocation(): string;
|
|
@@ -942,7 +947,6 @@ declare class SearchFacetsWidget {
|
|
|
942
947
|
routerHelper: RouterHelper;
|
|
943
948
|
cachedPhrase: string;
|
|
944
949
|
cachedANDFacets: string;
|
|
945
|
-
isCached: boolean;
|
|
946
950
|
overlayOpened: boolean;
|
|
947
951
|
facetPaginationStep: number;
|
|
948
952
|
facetPaginationStepMobile: number;
|
|
@@ -960,14 +964,13 @@ declare class SearchFacetsWidget {
|
|
|
960
964
|
};
|
|
961
965
|
focusedElement: HTMLInputElement | HTMLElement | null;
|
|
962
966
|
cachedData: IFacetsTemplateData | null;
|
|
963
|
-
cacheFacets: (
|
|
967
|
+
cacheFacets: (facetingType?: "and" | "or" | "showUnavailable" | "tabs") => void;
|
|
964
968
|
constructor(params: {
|
|
965
969
|
containerId: string;
|
|
966
970
|
config: ISearchstaxSearchFacetsConfig;
|
|
967
971
|
dataLayer: DataLAyer;
|
|
968
972
|
routerHelper: RouterHelper;
|
|
969
|
-
}, cacheFacets: (
|
|
970
|
-
get needCache(): boolean;
|
|
973
|
+
}, cacheFacets: (facetingType?: "and" | "or" | "showUnavailable" | "tabs") => void);
|
|
971
974
|
get needDisabling(): boolean;
|
|
972
975
|
private initializeSubscriptions;
|
|
973
976
|
extractFacetValue(data: IFacetValueData): ISearchstaxSearcObjectFacet;
|
|
@@ -987,6 +990,7 @@ declare class SearchFacetsWidget {
|
|
|
987
990
|
attachOnclickToShowMore(data: IFacetData, container: Element, isMobile?: boolean): void;
|
|
988
991
|
onShowMoreLessClick(e: Event, data: IFacetData, isMobile?: boolean): void;
|
|
989
992
|
private renderMainTemplate;
|
|
993
|
+
private get componentFacets();
|
|
990
994
|
generateSelectedFacetsData(): void;
|
|
991
995
|
createSelectedFacetsComponents(container: Element): void;
|
|
992
996
|
createClearFacetsComponents(container: Element): void;
|
|
@@ -1068,9 +1072,12 @@ declare class SearchInputWidget {
|
|
|
1068
1072
|
private containerId;
|
|
1069
1073
|
private currentInputValue;
|
|
1070
1074
|
autosuggestResults?: ISearchstaxSEARCHTERM;
|
|
1075
|
+
private suppressNextEnter;
|
|
1071
1076
|
private searchInput?;
|
|
1072
1077
|
private actionButton?;
|
|
1073
1078
|
private autosuggestContainer?;
|
|
1079
|
+
private clearButton?;
|
|
1080
|
+
private separatorIcon?;
|
|
1074
1081
|
private buttonState;
|
|
1075
1082
|
private selectedAutosuggestItem;
|
|
1076
1083
|
private suggestTrigger;
|
|
@@ -1086,6 +1093,7 @@ declare class SearchInputWidget {
|
|
|
1086
1093
|
private createAutosuggestContainer;
|
|
1087
1094
|
private getSuggestAfterValue;
|
|
1088
1095
|
private actionButtonInit;
|
|
1096
|
+
private updateClearButtonVisibility;
|
|
1089
1097
|
private attachSubscriptions;
|
|
1090
1098
|
private handleLoadingChange;
|
|
1091
1099
|
private handleSearchTermChange;
|
|
@@ -1093,6 +1101,7 @@ declare class SearchInputWidget {
|
|
|
1093
1101
|
selectPreviousAutosuggestItem(input: HTMLInputElement): void;
|
|
1094
1102
|
selectNextAutosuggestItem(): void;
|
|
1095
1103
|
resetAutosuggestSelection(): void;
|
|
1104
|
+
clearInput(): void;
|
|
1096
1105
|
markActiveAutosuggestItem(): void;
|
|
1097
1106
|
private inputKeyupEvent;
|
|
1098
1107
|
private autosuggestHandling;
|
|
@@ -1158,6 +1167,7 @@ declare class AnswersWidget {
|
|
|
1158
1167
|
renderFeedbackWidget: boolean;
|
|
1159
1168
|
clicked: boolean;
|
|
1160
1169
|
renderedWithShowMore: boolean;
|
|
1170
|
+
private showMoreListenerAttached;
|
|
1161
1171
|
constructor(params: {
|
|
1162
1172
|
containerId: string;
|
|
1163
1173
|
config: ISearchstaxAnswerConfig;
|
|
@@ -1167,7 +1177,7 @@ declare class AnswersWidget {
|
|
|
1167
1177
|
searchstaxFeedbackTextAreaOverride(): string;
|
|
1168
1178
|
initializeWidget(): void;
|
|
1169
1179
|
showMore(e: Event): void;
|
|
1170
|
-
private
|
|
1180
|
+
private attachShowMoreClickListener;
|
|
1171
1181
|
trackLinkClick(e: Event): void;
|
|
1172
1182
|
attachLinkTracking(): void;
|
|
1173
1183
|
private renderMainTemplate;
|
|
@@ -1213,7 +1223,7 @@ export declare class Searchstax {
|
|
|
1213
1223
|
searchInputWidget?: SearchInputWidget;
|
|
1214
1224
|
searchLocationWidget?: SearchLocationWidget;
|
|
1215
1225
|
searchResultsWidget?: SearchResultsWidget;
|
|
1216
|
-
searchFacetsWidget
|
|
1226
|
+
searchFacetsWidget: SearchFacetsWidget[];
|
|
1217
1227
|
searchPaginationWidget?: SearchPaginationWidget;
|
|
1218
1228
|
searchFeedbackWidget?: SearchFeedbackWidget;
|
|
1219
1229
|
searchSortingWidget?: SearchSortingWidget;
|