@bridgeline-digital/hawksearch-handlebars-ui 5.1.0-beta.0 → 5.1.0-beta.1
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/dist/components/search/conceptsearch-field/conceptsearch-field.component.d.ts +0 -10
- package/dist/components/search/imagesearch-field/imagesearch-field.component.d.ts +29 -0
- package/dist/configuration/configuration.models.d.ts +1 -0
- package/dist/index.js +2 -20209
- package/dist/index.js.LICENSE.txt +26 -0
- package/dist/index.js.map +1 -1
- package/dist/models/search.models.d.ts +12 -0
- package/dist/services/search.service.d.ts +2 -2
- package/dist/styles.36d6e6ed0aa89cd5e523177c64306e2d.css +1 -0
- package/package.json +1 -1
- package/dist/index.html +0 -52
- package/dist/landing-page-custom.html +0 -45
- package/dist/landing-page-products.html +0 -45
- package/dist/recommendations.html +0 -45
- package/dist/styles.9343824187042168e8079cf019d295ae.css +0 -1880
- package/dist/variants.html +0 -63
|
@@ -2,8 +2,6 @@ import { BaseComponent } from '@components';
|
|
|
2
2
|
import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
|
|
3
3
|
import { SearchFieldComponentModel, SearchResponse } from '@models';
|
|
4
4
|
/**
|
|
5
|
-
* The Search component contains a text input element which triggers the {@link Components.AutocompleteComponent | Autocomplete component} as the user types and executes a new search when the user hits the `enter` key.
|
|
6
|
-
*
|
|
7
5
|
* ## Tag
|
|
8
6
|
* The tag for this component is `<hawksearch-conceptearch-field>`.
|
|
9
7
|
*
|
|
@@ -12,8 +10,6 @@ import { SearchFieldComponentModel, SearchResponse } from '@models';
|
|
|
12
10
|
* | :- | :- |
|
|
13
11
|
* | hawksearch-input | |
|
|
14
12
|
*
|
|
15
|
-
* Input elements with this attribute will trigger {@link Components.AutocompleteComponent | Autocomplete} functionality when the user types and executes a new search when the user hits the `enter` key.
|
|
16
|
-
*
|
|
17
13
|
* ## Default Template
|
|
18
14
|
* The following is the default Handlebars template for this component. To create a custom template, it is recommended to use this as a starting point.
|
|
19
15
|
* {@embed ./conceptsearch-field.component.hbs}
|
|
@@ -24,15 +20,9 @@ export declare class ConceptSearchFieldComponent extends BaseComponent<SearchFie
|
|
|
24
20
|
protected componentName: keyof HawkSearchComponents;
|
|
25
21
|
protected defaultHtml: any;
|
|
26
22
|
protected bindFromEvent: boolean;
|
|
27
|
-
private clickEventHandler;
|
|
28
|
-
private defaultAutocompleteResponse?;
|
|
29
|
-
private previousAutocompleteResponse?;
|
|
30
23
|
private previousValue;
|
|
31
|
-
private get recommendationsEnabled();
|
|
32
24
|
connectedCallback(): void;
|
|
33
25
|
disconnectedCallback(): void;
|
|
34
26
|
protected getContentModel(): SearchFieldComponentModel;
|
|
35
27
|
protected onRender(): void;
|
|
36
|
-
private toggleAutocomplete;
|
|
37
|
-
private displayDefaultAutocomplete;
|
|
38
28
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
|
|
3
|
+
import { SearchFieldComponentModel, SearchResponse } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* ## Tag
|
|
7
|
+
* The tag for this component is `<hawksearch-imagesearch-field>`.
|
|
8
|
+
*
|
|
9
|
+
* ## Event-Binding Attributes
|
|
10
|
+
* | Name | Value |
|
|
11
|
+
* | :- | :- |
|
|
12
|
+
* | hawksearch-input | |
|
|
13
|
+
*
|
|
14
|
+
* ## Default Template
|
|
15
|
+
* The following is the default Handlebars template for this component. To create a custom template, it is recommended to use this as a starting point.
|
|
16
|
+
* {@embed ./imagesearch-field.component.hbs}
|
|
17
|
+
*
|
|
18
|
+
* @category Search
|
|
19
|
+
*/
|
|
20
|
+
export declare class ImageSearchFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
|
|
21
|
+
protected componentName: keyof HawkSearchComponents;
|
|
22
|
+
protected defaultHtml: any;
|
|
23
|
+
protected bindFromEvent: boolean;
|
|
24
|
+
private previousValue;
|
|
25
|
+
connectedCallback(): void;
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
protected getContentModel(): SearchFieldComponentModel;
|
|
28
|
+
protected onRender(): void;
|
|
29
|
+
}
|
|
@@ -227,6 +227,7 @@ export interface HawkSearchComponents {
|
|
|
227
227
|
'related-searches-facet'?: RelatedSearchesFacetComponentConfig;
|
|
228
228
|
'search-field'?: SearchFieldComponentConfig;
|
|
229
229
|
'conceptsearch-field'?: SearchFieldComponentConfig;
|
|
230
|
+
'imagesearch-field'?: SearchFieldComponentConfig;
|
|
230
231
|
'search-results'?: SearchResultsComponentConfig;
|
|
231
232
|
'search-results-item'?: SearchResultsItemComponentConfig;
|
|
232
233
|
'search-results-list'?: SearchResultsListComponentConfig;
|