@searchstax-inc/searchstudio-ux-js 4.2.2 → 4.2.10
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 +8 -0
- package/README.md +2 -0
- package/dist/@searchstax-inc/searchstudio-ux-js.cjs +77 -74
- package/dist/@searchstax-inc/searchstudio-ux-js.d.mts +8 -1
- package/dist/@searchstax-inc/searchstudio-ux-js.d.ts +8 -1
- package/dist/@searchstax-inc/searchstudio-ux-js.iife.js +77 -74
- package/dist/@searchstax-inc/searchstudio-ux-js.mjs +57 -54
- 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
|
@@ -460,6 +460,7 @@ export interface ISearchstaxSearchInputAutosuggestTemplateData {
|
|
|
460
460
|
}
|
|
461
461
|
export interface ISearchstaxSearchInputRenderData extends ISearchstaxParsedData {
|
|
462
462
|
locationEnabled: boolean;
|
|
463
|
+
hasInputValue: boolean;
|
|
463
464
|
}
|
|
464
465
|
export interface ISearchstaxLocationConfig {
|
|
465
466
|
templates?: ISearchstaxLocationConfigTemplates;
|
|
@@ -1068,9 +1069,12 @@ declare class SearchInputWidget {
|
|
|
1068
1069
|
private containerId;
|
|
1069
1070
|
private currentInputValue;
|
|
1070
1071
|
autosuggestResults?: ISearchstaxSEARCHTERM;
|
|
1072
|
+
private suppressNextEnter;
|
|
1071
1073
|
private searchInput?;
|
|
1072
1074
|
private actionButton?;
|
|
1073
1075
|
private autosuggestContainer?;
|
|
1076
|
+
private clearButton?;
|
|
1077
|
+
private separatorIcon?;
|
|
1074
1078
|
private buttonState;
|
|
1075
1079
|
private selectedAutosuggestItem;
|
|
1076
1080
|
private suggestTrigger;
|
|
@@ -1086,6 +1090,7 @@ declare class SearchInputWidget {
|
|
|
1086
1090
|
private createAutosuggestContainer;
|
|
1087
1091
|
private getSuggestAfterValue;
|
|
1088
1092
|
private actionButtonInit;
|
|
1093
|
+
private updateClearButtonVisibility;
|
|
1089
1094
|
private attachSubscriptions;
|
|
1090
1095
|
private handleLoadingChange;
|
|
1091
1096
|
private handleSearchTermChange;
|
|
@@ -1093,6 +1098,7 @@ declare class SearchInputWidget {
|
|
|
1093
1098
|
selectPreviousAutosuggestItem(input: HTMLInputElement): void;
|
|
1094
1099
|
selectNextAutosuggestItem(): void;
|
|
1095
1100
|
resetAutosuggestSelection(): void;
|
|
1101
|
+
clearInput(): void;
|
|
1096
1102
|
markActiveAutosuggestItem(): void;
|
|
1097
1103
|
private inputKeyupEvent;
|
|
1098
1104
|
private autosuggestHandling;
|
|
@@ -1158,6 +1164,7 @@ declare class AnswersWidget {
|
|
|
1158
1164
|
renderFeedbackWidget: boolean;
|
|
1159
1165
|
clicked: boolean;
|
|
1160
1166
|
renderedWithShowMore: boolean;
|
|
1167
|
+
private showMoreListenerAttached;
|
|
1161
1168
|
constructor(params: {
|
|
1162
1169
|
containerId: string;
|
|
1163
1170
|
config: ISearchstaxAnswerConfig;
|
|
@@ -1167,7 +1174,7 @@ declare class AnswersWidget {
|
|
|
1167
1174
|
searchstaxFeedbackTextAreaOverride(): string;
|
|
1168
1175
|
initializeWidget(): void;
|
|
1169
1176
|
showMore(e: Event): void;
|
|
1170
|
-
private
|
|
1177
|
+
private attachShowMoreClickListener;
|
|
1171
1178
|
trackLinkClick(e: Event): void;
|
|
1172
1179
|
attachLinkTracking(): void;
|
|
1173
1180
|
private renderMainTemplate;
|
|
@@ -460,6 +460,7 @@ export interface ISearchstaxSearchInputAutosuggestTemplateData {
|
|
|
460
460
|
}
|
|
461
461
|
export interface ISearchstaxSearchInputRenderData extends ISearchstaxParsedData {
|
|
462
462
|
locationEnabled: boolean;
|
|
463
|
+
hasInputValue: boolean;
|
|
463
464
|
}
|
|
464
465
|
export interface ISearchstaxLocationConfig {
|
|
465
466
|
templates?: ISearchstaxLocationConfigTemplates;
|
|
@@ -1068,9 +1069,12 @@ declare class SearchInputWidget {
|
|
|
1068
1069
|
private containerId;
|
|
1069
1070
|
private currentInputValue;
|
|
1070
1071
|
autosuggestResults?: ISearchstaxSEARCHTERM;
|
|
1072
|
+
private suppressNextEnter;
|
|
1071
1073
|
private searchInput?;
|
|
1072
1074
|
private actionButton?;
|
|
1073
1075
|
private autosuggestContainer?;
|
|
1076
|
+
private clearButton?;
|
|
1077
|
+
private separatorIcon?;
|
|
1074
1078
|
private buttonState;
|
|
1075
1079
|
private selectedAutosuggestItem;
|
|
1076
1080
|
private suggestTrigger;
|
|
@@ -1086,6 +1090,7 @@ declare class SearchInputWidget {
|
|
|
1086
1090
|
private createAutosuggestContainer;
|
|
1087
1091
|
private getSuggestAfterValue;
|
|
1088
1092
|
private actionButtonInit;
|
|
1093
|
+
private updateClearButtonVisibility;
|
|
1089
1094
|
private attachSubscriptions;
|
|
1090
1095
|
private handleLoadingChange;
|
|
1091
1096
|
private handleSearchTermChange;
|
|
@@ -1093,6 +1098,7 @@ declare class SearchInputWidget {
|
|
|
1093
1098
|
selectPreviousAutosuggestItem(input: HTMLInputElement): void;
|
|
1094
1099
|
selectNextAutosuggestItem(): void;
|
|
1095
1100
|
resetAutosuggestSelection(): void;
|
|
1101
|
+
clearInput(): void;
|
|
1096
1102
|
markActiveAutosuggestItem(): void;
|
|
1097
1103
|
private inputKeyupEvent;
|
|
1098
1104
|
private autosuggestHandling;
|
|
@@ -1158,6 +1164,7 @@ declare class AnswersWidget {
|
|
|
1158
1164
|
renderFeedbackWidget: boolean;
|
|
1159
1165
|
clicked: boolean;
|
|
1160
1166
|
renderedWithShowMore: boolean;
|
|
1167
|
+
private showMoreListenerAttached;
|
|
1161
1168
|
constructor(params: {
|
|
1162
1169
|
containerId: string;
|
|
1163
1170
|
config: ISearchstaxAnswerConfig;
|
|
@@ -1167,7 +1174,7 @@ declare class AnswersWidget {
|
|
|
1167
1174
|
searchstaxFeedbackTextAreaOverride(): string;
|
|
1168
1175
|
initializeWidget(): void;
|
|
1169
1176
|
showMore(e: Event): void;
|
|
1170
|
-
private
|
|
1177
|
+
private attachShowMoreClickListener;
|
|
1171
1178
|
trackLinkClick(e: Event): void;
|
|
1172
1179
|
attachLinkTracking(): void;
|
|
1173
1180
|
private renderMainTemplate;
|