@bridgeline-digital/hawksearch-handlebars-ui 5.0.0 → 5.0.4
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 +106 -102
- package/dist/components/base.component.d.ts +139 -139
- package/dist/components/content/content-types/base-content.component.d.ts +9 -9
- package/dist/components/content/content-types/custom-content/custom-content.component.d.ts +21 -21
- package/dist/components/content/content-types/featured-items-content/featured-items-content.component.d.ts +22 -22
- package/dist/components/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +39 -39
- package/dist/components/content/content-types/image-content/image-content.component.d.ts +22 -22
- package/dist/components/content/content-types/index.d.ts +6 -6
- package/dist/components/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +22 -22
- package/dist/components/content/content-zone/content-zone.component.d.ts +44 -44
- package/dist/components/content/index.d.ts +2 -2
- package/dist/components/general/date-picker/date-picker.component.d.ts +117 -117
- package/dist/components/general/icon/icon.component.d.ts +38 -38
- package/dist/components/general/index.d.ts +5 -5
- package/dist/components/general/range-slider/range-slider.component.d.ts +54 -54
- package/dist/components/general/rating/rating.component.d.ts +39 -39
- package/dist/components/general/tooltip/tooltip.component.d.ts +32 -32
- package/dist/components/index.d.ts +229 -229
- package/dist/components/landing-pages/index.d.ts +1 -1
- package/dist/components/landing-pages/landing-page/landing-page.component.d.ts +32 -32
- package/dist/components/recommendations/index.d.ts +2 -2
- package/dist/components/recommendations/recommendations/recommendations.component.d.ts +87 -87
- package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts +40 -40
- package/dist/components/search/autocomplete/autocomplete.component.d.ts +59 -59
- package/dist/components/search/facet-types/base-facet.component.d.ts +44 -44
- package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +36 -36
- package/dist/components/search/facet-types/color-facet/color-facet.component.d.ts +24 -24
- package/dist/components/search/facet-types/date-range-facet/date-range-facet.component.d.ts +33 -33
- package/dist/components/search/facet-types/index.d.ts +11 -11
- package/dist/components/search/facet-types/linked-list-facet/link-list-facet.component.d.ts +24 -24
- package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +32 -32
- package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +34 -34
- package/dist/components/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +29 -29
- package/dist/components/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +29 -29
- package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts +29 -29
- package/dist/components/search/facet-types/size-facet/size-facet.component.d.ts +24 -24
- package/dist/components/search/facet-wrapper/facet-wrapper.component.d.ts +47 -47
- package/dist/components/search/facets-list/facets-list.component.d.ts +32 -32
- package/dist/components/search/index.d.ts +15 -15
- package/dist/components/search/modified-query/modified-query.component.d.ts +32 -32
- package/dist/components/search/page-size/page-size.component.d.ts +32 -32
- package/dist/components/search/pagination/pagination.component.d.ts +43 -43
- package/dist/components/search/query-suggestions/query-suggestions.component.d.ts +38 -38
- package/dist/components/search/search-field/search-field.component.d.ts +38 -38
- package/dist/components/search/search-results/search-results.component.d.ts +34 -34
- package/dist/components/search/search-results-item/search-results-item.component.d.ts +38 -38
- package/dist/components/search/search-results-list/search-results-list.component.d.ts +23 -23
- package/dist/components/search/selected-facets/selected-facets.component.d.ts +31 -31
- package/dist/components/search/sorting/sorting.component.d.ts +30 -30
- package/dist/components/search/tabs/tabs.component.d.ts +30 -30
- package/dist/components/variants/index.d.ts +1 -1
- package/dist/components/variants/variant-selector/variant-selector.component.d.ts +23 -23
- package/dist/configuration/configuration.models.d.ts +574 -574
- package/dist/configuration/index.d.ts +4 -4
- package/dist/helpers/helpers.d.ts +200 -200
- package/dist/helpers/index.d.ts +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/autocomplete.models.d.ts +85 -85
- package/dist/models/base.models.d.ts +50 -50
- package/dist/models/component.models.d.ts +453 -453
- package/dist/models/content.models.d.ts +94 -94
- package/dist/models/index.d.ts +11 -11
- package/dist/models/raw/index.d.ts +4 -4
- package/dist/models/raw/raw-autocomplete.models.d.ts +51 -51
- package/dist/models/raw/raw-base.models.d.ts +8 -8
- package/dist/models/raw/raw-recommendation.models.d.ts +39 -39
- package/dist/models/raw/raw-search.models.d.ts +191 -191
- package/dist/models/recommendation.models.d.ts +31 -31
- package/dist/models/search.models.d.ts +237 -237
- package/dist/models/tracking.models.d.ts +42 -42
- package/dist/services/autocomplete.service.d.ts +10 -10
- package/dist/services/base.service.d.ts +63 -63
- package/dist/services/index.d.ts +8 -8
- package/dist/services/recommendations.service.d.ts +10 -10
- package/dist/services/search.service.d.ts +50 -50
- package/dist/services/tracking.service.d.ts +29 -29
- package/dist/utilities/colors.d.ts +1 -1
- package/dist/utilities/dates.d.ts +4 -4
- package/dist/utilities/formatters.d.ts +4 -4
- package/dist/utilities/index.d.ts +6 -6
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, ModifiedQueryComponentConfig } from '@configuration';
|
|
3
|
-
import { ModifiedQueryComponentModel, ModifiedQueryData } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Modified Query component is rendered when the spellchecker detects a spelling error and searches for the correctly-spelled query instead.
|
|
6
|
-
*
|
|
7
|
-
* *Note: This component is only visible for new searches. If the spellchecker revises a query and the user then performs an action such as applying facet or moving to another page of results, it is implied that the user accepts the correction.*
|
|
8
|
-
*
|
|
9
|
-
* ## Tag
|
|
10
|
-
* The tag for this component is `<hawksearch-modified-query>`.
|
|
11
|
-
*
|
|
12
|
-
* ## Event-Binding Attributes
|
|
13
|
-
* | Name | Value |
|
|
14
|
-
* | :- | :- |
|
|
15
|
-
* | hawksearch-query | `string` |
|
|
16
|
-
*
|
|
17
|
-
* When an element with this attribute is clicked, a new search will be executed with the specified query and spellcheck functionality disabled. This is useful when the spellchecker mistakes a valid entry for another term.
|
|
18
|
-
*
|
|
19
|
-
* ## Default Template
|
|
20
|
-
* 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.
|
|
21
|
-
* {@embed ./modified-query.component.hbs}
|
|
22
|
-
*
|
|
23
|
-
* @category Search
|
|
24
|
-
*/
|
|
25
|
-
export declare class ModifiedQueryComponent extends BaseComponent<ModifiedQueryComponentConfig, ModifiedQueryData, ModifiedQueryComponentModel> {
|
|
26
|
-
protected componentName: keyof HawkSearchComponents;
|
|
27
|
-
protected defaultHtml: any;
|
|
28
|
-
protected bindFromEvent: boolean;
|
|
29
|
-
protected renderContent(): boolean;
|
|
30
|
-
protected getContentModel(): ModifiedQueryComponentModel;
|
|
31
|
-
protected onRender(): void;
|
|
32
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, ModifiedQueryComponentConfig } from '@configuration';
|
|
3
|
+
import { ModifiedQueryComponentModel, ModifiedQueryData } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Modified Query component is rendered when the spellchecker detects a spelling error and searches for the correctly-spelled query instead.
|
|
6
|
+
*
|
|
7
|
+
* *Note: This component is only visible for new searches. If the spellchecker revises a query and the user then performs an action such as applying facet or moving to another page of results, it is implied that the user accepts the correction.*
|
|
8
|
+
*
|
|
9
|
+
* ## Tag
|
|
10
|
+
* The tag for this component is `<hawksearch-modified-query>`.
|
|
11
|
+
*
|
|
12
|
+
* ## Event-Binding Attributes
|
|
13
|
+
* | Name | Value |
|
|
14
|
+
* | :- | :- |
|
|
15
|
+
* | hawksearch-query | `string` |
|
|
16
|
+
*
|
|
17
|
+
* When an element with this attribute is clicked, a new search will be executed with the specified query and spellcheck functionality disabled. This is useful when the spellchecker mistakes a valid entry for another term.
|
|
18
|
+
*
|
|
19
|
+
* ## Default Template
|
|
20
|
+
* 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.
|
|
21
|
+
* {@embed ./modified-query.component.hbs}
|
|
22
|
+
*
|
|
23
|
+
* @category Search
|
|
24
|
+
*/
|
|
25
|
+
export declare class ModifiedQueryComponent extends BaseComponent<ModifiedQueryComponentConfig, ModifiedQueryData, ModifiedQueryComponentModel> {
|
|
26
|
+
protected componentName: keyof HawkSearchComponents;
|
|
27
|
+
protected defaultHtml: any;
|
|
28
|
+
protected bindFromEvent: boolean;
|
|
29
|
+
protected renderContent(): boolean;
|
|
30
|
+
protected getContentModel(): ModifiedQueryComponentModel;
|
|
31
|
+
protected onRender(): void;
|
|
32
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, PageSizeComponentConfig } from '@configuration';
|
|
3
|
-
import { PageSizeComponentModel, PaginationOption } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Page Size component is used to modify the number of search results displayed on each page.
|
|
6
|
-
*
|
|
7
|
-
* *Note: When the page size changes, the first page will automatically be selected.*
|
|
8
|
-
*
|
|
9
|
-
* ## Tag
|
|
10
|
-
* The tag for this component is `<hawksearch-page-size>`.
|
|
11
|
-
*
|
|
12
|
-
* ## Event-Binding Attributes
|
|
13
|
-
* | Name | Value |
|
|
14
|
-
* | :- | :- |
|
|
15
|
-
* | hawksearch-page-size | |
|
|
16
|
-
*
|
|
17
|
-
* When a `select` element with this attribute changes in value, the search will be updated to use that value as the new page size.
|
|
18
|
-
*
|
|
19
|
-
* ## Default Template
|
|
20
|
-
* 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.
|
|
21
|
-
* {@embed ./page-size.component.hbs}
|
|
22
|
-
*
|
|
23
|
-
* @category Search
|
|
24
|
-
*/
|
|
25
|
-
export declare class PageSizeComponent extends BaseComponent<PageSizeComponentConfig, Array<PaginationOption>, PageSizeComponentModel> {
|
|
26
|
-
protected componentName: keyof HawkSearchComponents;
|
|
27
|
-
protected defaultHtml: any;
|
|
28
|
-
protected bindFromEvent: boolean;
|
|
29
|
-
protected renderContent(): boolean;
|
|
30
|
-
protected getContentModel(): PageSizeComponentModel;
|
|
31
|
-
protected onRender(): void;
|
|
32
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, PageSizeComponentConfig } from '@configuration';
|
|
3
|
+
import { PageSizeComponentModel, PaginationOption } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Page Size component is used to modify the number of search results displayed on each page.
|
|
6
|
+
*
|
|
7
|
+
* *Note: When the page size changes, the first page will automatically be selected.*
|
|
8
|
+
*
|
|
9
|
+
* ## Tag
|
|
10
|
+
* The tag for this component is `<hawksearch-page-size>`.
|
|
11
|
+
*
|
|
12
|
+
* ## Event-Binding Attributes
|
|
13
|
+
* | Name | Value |
|
|
14
|
+
* | :- | :- |
|
|
15
|
+
* | hawksearch-page-size | |
|
|
16
|
+
*
|
|
17
|
+
* When a `select` element with this attribute changes in value, the search will be updated to use that value as the new page size.
|
|
18
|
+
*
|
|
19
|
+
* ## Default Template
|
|
20
|
+
* 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.
|
|
21
|
+
* {@embed ./page-size.component.hbs}
|
|
22
|
+
*
|
|
23
|
+
* @category Search
|
|
24
|
+
*/
|
|
25
|
+
export declare class PageSizeComponent extends BaseComponent<PageSizeComponentConfig, Array<PaginationOption>, PageSizeComponentModel> {
|
|
26
|
+
protected componentName: keyof HawkSearchComponents;
|
|
27
|
+
protected defaultHtml: any;
|
|
28
|
+
protected bindFromEvent: boolean;
|
|
29
|
+
protected renderContent(): boolean;
|
|
30
|
+
protected getContentModel(): PageSizeComponentModel;
|
|
31
|
+
protected onRender(): void;
|
|
32
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, PaginationComponentConfig } from '@configuration';
|
|
3
|
-
import { Pagination, PaginationComponentModel } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Pagination component is used to navigate between different pages of a search results set.
|
|
6
|
-
*
|
|
7
|
-
* *Note: If no maximum number of page links to display is configured in the HawkSearch admin, a default value of `9` will be used.*
|
|
8
|
-
*
|
|
9
|
-
* ## Tag
|
|
10
|
-
* The tag for this component is `<hawksearch-pagination>`.
|
|
11
|
-
*
|
|
12
|
-
* ## Event-Binding Attributes
|
|
13
|
-
* | Name | Value |
|
|
14
|
-
* | :- | :- |
|
|
15
|
-
* | hawksearch-page | `number` |
|
|
16
|
-
*
|
|
17
|
-
* When an element with this attribute is clicked, the current search will be updated to display the results from the specified page.
|
|
18
|
-
*
|
|
19
|
-
* ## Handlebars Helpers
|
|
20
|
-
* | Name | Parameter |
|
|
21
|
-
* | :- | :- |
|
|
22
|
-
* | pageUrl | `number` |
|
|
23
|
-
*
|
|
24
|
-
* This helper function returns the URL for the specified page to enable crawling.
|
|
25
|
-
*
|
|
26
|
-
* ## Default Template
|
|
27
|
-
* 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.
|
|
28
|
-
* {@embed ./pagination.component.hbs}
|
|
29
|
-
*
|
|
30
|
-
* @category Search
|
|
31
|
-
*/
|
|
32
|
-
export declare class PaginationComponent extends BaseComponent<PaginationComponentConfig, Pagination, PaginationComponentModel> {
|
|
33
|
-
protected componentName: keyof HawkSearchComponents;
|
|
34
|
-
protected defaultHtml: any;
|
|
35
|
-
protected bindFromEvent: boolean;
|
|
36
|
-
private defaultMaxPageLinks;
|
|
37
|
-
protected registerHelpers(): void;
|
|
38
|
-
protected renderContent(): boolean;
|
|
39
|
-
protected getContentModel(): PaginationComponentModel;
|
|
40
|
-
protected onRender(): void;
|
|
41
|
-
protected setPage(page: number): Promise<void>;
|
|
42
|
-
private getPages;
|
|
43
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, PaginationComponentConfig } from '@configuration';
|
|
3
|
+
import { Pagination, PaginationComponentModel } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Pagination component is used to navigate between different pages of a search results set.
|
|
6
|
+
*
|
|
7
|
+
* *Note: If no maximum number of page links to display is configured in the HawkSearch admin, a default value of `9` will be used.*
|
|
8
|
+
*
|
|
9
|
+
* ## Tag
|
|
10
|
+
* The tag for this component is `<hawksearch-pagination>`.
|
|
11
|
+
*
|
|
12
|
+
* ## Event-Binding Attributes
|
|
13
|
+
* | Name | Value |
|
|
14
|
+
* | :- | :- |
|
|
15
|
+
* | hawksearch-page | `number` |
|
|
16
|
+
*
|
|
17
|
+
* When an element with this attribute is clicked, the current search will be updated to display the results from the specified page.
|
|
18
|
+
*
|
|
19
|
+
* ## Handlebars Helpers
|
|
20
|
+
* | Name | Parameter |
|
|
21
|
+
* | :- | :- |
|
|
22
|
+
* | pageUrl | `number` |
|
|
23
|
+
*
|
|
24
|
+
* This helper function returns the URL for the specified page to enable crawling.
|
|
25
|
+
*
|
|
26
|
+
* ## Default Template
|
|
27
|
+
* 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.
|
|
28
|
+
* {@embed ./pagination.component.hbs}
|
|
29
|
+
*
|
|
30
|
+
* @category Search
|
|
31
|
+
*/
|
|
32
|
+
export declare class PaginationComponent extends BaseComponent<PaginationComponentConfig, Pagination, PaginationComponentModel> {
|
|
33
|
+
protected componentName: keyof HawkSearchComponents;
|
|
34
|
+
protected defaultHtml: any;
|
|
35
|
+
protected bindFromEvent: boolean;
|
|
36
|
+
private defaultMaxPageLinks;
|
|
37
|
+
protected registerHelpers(): void;
|
|
38
|
+
protected renderContent(): boolean;
|
|
39
|
+
protected getContentModel(): PaginationComponentModel;
|
|
40
|
+
protected onRender(): void;
|
|
41
|
+
protected setPage(page: number): Promise<void>;
|
|
42
|
+
private getPages;
|
|
43
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, QuerySuggestionsComponentConfig } from '@configuration';
|
|
3
|
-
import { QuerySuggestionsComponentModel, QuerySuggestionsData } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Query Suggestions component displays a list of possible queries that the search engine detects the user may be looking for.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-query-suggestions>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-query | `string` |
|
|
14
|
-
*
|
|
15
|
-
* When an element with this attribute is clicked, a new search will be formed for the specified query.
|
|
16
|
-
*
|
|
17
|
-
* ## Handlebars Helpers
|
|
18
|
-
* | Name | Parameter |
|
|
19
|
-
* | :- | :- |
|
|
20
|
-
* | query-suggestions | `Array<string>` |
|
|
21
|
-
*
|
|
22
|
-
* This helper function creates a comma-separated list of links with the `hawksearch-query` attribute, using the word “or” before the last link.
|
|
23
|
-
*
|
|
24
|
-
* ## Default Template
|
|
25
|
-
* 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.
|
|
26
|
-
* {@embed ./query-suggestions.component.hbs}
|
|
27
|
-
*
|
|
28
|
-
* @category Search
|
|
29
|
-
*/
|
|
30
|
-
export declare class QuerySuggestionsComponent extends BaseComponent<QuerySuggestionsComponentConfig, QuerySuggestionsData, QuerySuggestionsComponentModel> {
|
|
31
|
-
protected componentName: keyof HawkSearchComponents;
|
|
32
|
-
protected defaultHtml: any;
|
|
33
|
-
protected bindFromEvent: boolean;
|
|
34
|
-
protected registerHelpers(): void;
|
|
35
|
-
protected renderContent(): boolean;
|
|
36
|
-
protected getContentModel(): QuerySuggestionsComponentModel;
|
|
37
|
-
protected onRender(): void;
|
|
38
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, QuerySuggestionsComponentConfig } from '@configuration';
|
|
3
|
+
import { QuerySuggestionsComponentModel, QuerySuggestionsData } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Query Suggestions component displays a list of possible queries that the search engine detects the user may be looking for.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-query-suggestions>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-query | `string` |
|
|
14
|
+
*
|
|
15
|
+
* When an element with this attribute is clicked, a new search will be formed for the specified query.
|
|
16
|
+
*
|
|
17
|
+
* ## Handlebars Helpers
|
|
18
|
+
* | Name | Parameter |
|
|
19
|
+
* | :- | :- |
|
|
20
|
+
* | query-suggestions | `Array<string>` |
|
|
21
|
+
*
|
|
22
|
+
* This helper function creates a comma-separated list of links with the `hawksearch-query` attribute, using the word “or” before the last link.
|
|
23
|
+
*
|
|
24
|
+
* ## Default Template
|
|
25
|
+
* 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.
|
|
26
|
+
* {@embed ./query-suggestions.component.hbs}
|
|
27
|
+
*
|
|
28
|
+
* @category Search
|
|
29
|
+
*/
|
|
30
|
+
export declare class QuerySuggestionsComponent extends BaseComponent<QuerySuggestionsComponentConfig, QuerySuggestionsData, QuerySuggestionsComponentModel> {
|
|
31
|
+
protected componentName: keyof HawkSearchComponents;
|
|
32
|
+
protected defaultHtml: any;
|
|
33
|
+
protected bindFromEvent: boolean;
|
|
34
|
+
protected registerHelpers(): void;
|
|
35
|
+
protected renderContent(): boolean;
|
|
36
|
+
protected getContentModel(): QuerySuggestionsComponentModel;
|
|
37
|
+
protected onRender(): void;
|
|
38
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
|
|
3
|
-
import { SearchFieldComponentModel, SearchResponse } from '@models';
|
|
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
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-search-field>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-input | |
|
|
14
|
-
*
|
|
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
|
-
* ## Default Template
|
|
18
|
-
* 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
|
-
* {@embed ./search-field.component.hbs}
|
|
20
|
-
*
|
|
21
|
-
* @category Search
|
|
22
|
-
*/
|
|
23
|
-
export declare class SearchFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
|
|
24
|
-
protected componentName: keyof HawkSearchComponents;
|
|
25
|
-
protected defaultHtml: any;
|
|
26
|
-
protected bindFromEvent: boolean;
|
|
27
|
-
private clickEventHandler;
|
|
28
|
-
private defaultAutocompleteResponse?;
|
|
29
|
-
private previousAutocompleteResponse?;
|
|
30
|
-
private previousValue;
|
|
31
|
-
private get recommendationsEnabled();
|
|
32
|
-
connectedCallback(): void;
|
|
33
|
-
disconnectedCallback(): void;
|
|
34
|
-
protected getContentModel(): SearchFieldComponentModel;
|
|
35
|
-
protected onRender(): void;
|
|
36
|
-
private toggleAutocomplete;
|
|
37
|
-
private displayDefaultAutocomplete;
|
|
38
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
|
|
3
|
+
import { SearchFieldComponentModel, SearchResponse } from '@models';
|
|
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
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-search-field>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-input | |
|
|
14
|
+
*
|
|
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
|
+
* ## Default Template
|
|
18
|
+
* 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
|
+
* {@embed ./search-field.component.hbs}
|
|
20
|
+
*
|
|
21
|
+
* @category Search
|
|
22
|
+
*/
|
|
23
|
+
export declare class SearchFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
|
|
24
|
+
protected componentName: keyof HawkSearchComponents;
|
|
25
|
+
protected defaultHtml: any;
|
|
26
|
+
protected bindFromEvent: boolean;
|
|
27
|
+
private clickEventHandler;
|
|
28
|
+
private defaultAutocompleteResponse?;
|
|
29
|
+
private previousAutocompleteResponse?;
|
|
30
|
+
private previousValue;
|
|
31
|
+
private get recommendationsEnabled();
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
protected getContentModel(): SearchFieldComponentModel;
|
|
35
|
+
protected onRender(): void;
|
|
36
|
+
private toggleAutocomplete;
|
|
37
|
+
private displayDefaultAutocomplete;
|
|
38
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, SearchResultsComponentConfig } from '@configuration';
|
|
3
|
-
import { SearchResponse, SearchResultsComponentModel, SearchResultsMode } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Search Results component encapsulates all components relating to search-results.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-search-results>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Default Template
|
|
11
|
-
* 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.
|
|
12
|
-
* {@embed ./search-results.component.hbs}
|
|
13
|
-
*
|
|
14
|
-
* @category Search
|
|
15
|
-
*/
|
|
16
|
-
export declare class SearchResultsComponent extends BaseComponent<SearchResultsComponentConfig, SearchResponse, SearchResultsComponentModel> {
|
|
17
|
-
protected componentName: keyof HawkSearchComponents;
|
|
18
|
-
protected defaultHtml: any;
|
|
19
|
-
protected bindFromEvent: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Speficies the context that the component is being used. This is determined by the `mode` attribute on the HTML element.
|
|
22
|
-
*
|
|
23
|
-
* @defaultValue `'search-results'`
|
|
24
|
-
*/
|
|
25
|
-
protected get mode(): SearchResultsMode;
|
|
26
|
-
/**
|
|
27
|
-
* If {@link mode} is set to `'landing-page'`, this specifies the URL sent to retrieve content from HawkSearch. This can be customized by setting the `url` attribute on the HTML element.
|
|
28
|
-
*
|
|
29
|
-
* @defaultValue `window.location.pathname`
|
|
30
|
-
*/
|
|
31
|
-
protected get url(): string;
|
|
32
|
-
constructor();
|
|
33
|
-
protected getContentModel(): SearchResultsComponentModel;
|
|
34
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, SearchResultsComponentConfig } from '@configuration';
|
|
3
|
+
import { SearchResponse, SearchResultsComponentModel, SearchResultsMode } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Search Results component encapsulates all components relating to search-results.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-search-results>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Default Template
|
|
11
|
+
* 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.
|
|
12
|
+
* {@embed ./search-results.component.hbs}
|
|
13
|
+
*
|
|
14
|
+
* @category Search
|
|
15
|
+
*/
|
|
16
|
+
export declare class SearchResultsComponent extends BaseComponent<SearchResultsComponentConfig, SearchResponse, SearchResultsComponentModel> {
|
|
17
|
+
protected componentName: keyof HawkSearchComponents;
|
|
18
|
+
protected defaultHtml: any;
|
|
19
|
+
protected bindFromEvent: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Speficies the context that the component is being used. This is determined by the `mode` attribute on the HTML element.
|
|
22
|
+
*
|
|
23
|
+
* @defaultValue `'search-results'`
|
|
24
|
+
*/
|
|
25
|
+
protected get mode(): SearchResultsMode;
|
|
26
|
+
/**
|
|
27
|
+
* If {@link mode} is set to `'landing-page'`, this specifies the URL sent to retrieve content from HawkSearch. This can be customized by setting the `url` attribute on the HTML element.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue `window.location.pathname`
|
|
30
|
+
*/
|
|
31
|
+
protected get url(): string;
|
|
32
|
+
constructor();
|
|
33
|
+
protected getContentModel(): SearchResultsComponentModel;
|
|
34
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, SearchResultsItemComponentConfig } from '@configuration';
|
|
3
|
-
import { SearchResultsItem, SearchResultsItemComponentModel } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Search Results Item component displays information for an individual product or page.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-search-results-item>`.
|
|
9
|
-
*
|
|
10
|
-
* *Note: This component should only be used within the context of the {@link Components.SearchResultsListComponent | Search Results List component}.
|
|
11
|
-
*
|
|
12
|
-
* ## Event-Binding Attributes
|
|
13
|
-
* | Name | Value |
|
|
14
|
-
* | :- | :- |
|
|
15
|
-
* | hawksearch-image | |
|
|
16
|
-
*
|
|
17
|
-
* Image elements with this attribute will have their `src` value replaced with a placeholder image URL if the image fails to load.
|
|
18
|
-
*
|
|
19
|
-
* | Name | Value |
|
|
20
|
-
* | :- | :- |
|
|
21
|
-
* | hawksearch-link | |
|
|
22
|
-
*
|
|
23
|
-
* Anchor elements with this attribute will be tracked when clicked.
|
|
24
|
-
*
|
|
25
|
-
* ## Default Template
|
|
26
|
-
* 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.
|
|
27
|
-
* {@embed ./search-results-item.component.hbs}
|
|
28
|
-
*
|
|
29
|
-
* @category Search
|
|
30
|
-
*/
|
|
31
|
-
export declare class SearchResultsItemComponent extends BaseComponent<SearchResultsItemComponentConfig, SearchResultsItem, SearchResultsItemComponentModel> {
|
|
32
|
-
protected componentName: keyof HawkSearchComponents;
|
|
33
|
-
protected defaultHtml: any;
|
|
34
|
-
protected bindFromEvent: boolean;
|
|
35
|
-
protected renderContent(): boolean;
|
|
36
|
-
protected getContentModel(): SearchResultsItemComponentModel;
|
|
37
|
-
protected onRender(): void;
|
|
38
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, SearchResultsItemComponentConfig } from '@configuration';
|
|
3
|
+
import { SearchResultsItem, SearchResultsItemComponentModel } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Search Results Item component displays information for an individual product or page.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-search-results-item>`.
|
|
9
|
+
*
|
|
10
|
+
* *Note: This component should only be used within the context of the {@link Components.SearchResultsListComponent | Search Results List component}.
|
|
11
|
+
*
|
|
12
|
+
* ## Event-Binding Attributes
|
|
13
|
+
* | Name | Value |
|
|
14
|
+
* | :- | :- |
|
|
15
|
+
* | hawksearch-image | |
|
|
16
|
+
*
|
|
17
|
+
* Image elements with this attribute will have their `src` value replaced with a placeholder image URL if the image fails to load.
|
|
18
|
+
*
|
|
19
|
+
* | Name | Value |
|
|
20
|
+
* | :- | :- |
|
|
21
|
+
* | hawksearch-link | |
|
|
22
|
+
*
|
|
23
|
+
* Anchor elements with this attribute will be tracked when clicked.
|
|
24
|
+
*
|
|
25
|
+
* ## Default Template
|
|
26
|
+
* 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.
|
|
27
|
+
* {@embed ./search-results-item.component.hbs}
|
|
28
|
+
*
|
|
29
|
+
* @category Search
|
|
30
|
+
*/
|
|
31
|
+
export declare class SearchResultsItemComponent extends BaseComponent<SearchResultsItemComponentConfig, SearchResultsItem, SearchResultsItemComponentModel> {
|
|
32
|
+
protected componentName: keyof HawkSearchComponents;
|
|
33
|
+
protected defaultHtml: any;
|
|
34
|
+
protected bindFromEvent: boolean;
|
|
35
|
+
protected renderContent(): boolean;
|
|
36
|
+
protected getContentModel(): SearchResultsItemComponentModel;
|
|
37
|
+
protected onRender(): void;
|
|
38
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, SearchResultsListComponentConfig } from '@configuration';
|
|
3
|
-
import { SearchResultsItem, SearchResultsListComponentModel } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Search Results List component is a wrapper around a group of {@link Components.SearchResultsItemComponent | Search Results Item} components.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-search-results-list>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Default Template
|
|
11
|
-
* 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.
|
|
12
|
-
* {@embed ./search-results-list.component.hbs}
|
|
13
|
-
*
|
|
14
|
-
* @category Search
|
|
15
|
-
*/
|
|
16
|
-
export declare class SearchResultsListComponent extends BaseComponent<SearchResultsListComponentConfig, Array<SearchResultsItem>, SearchResultsListComponentModel> {
|
|
17
|
-
protected componentName: keyof HawkSearchComponents;
|
|
18
|
-
protected defaultHtml: any;
|
|
19
|
-
protected bindFromEvent: boolean;
|
|
20
|
-
protected renderContent(): boolean;
|
|
21
|
-
protected getContentModel(): SearchResultsListComponentModel;
|
|
22
|
-
protected bindChildElements(): void;
|
|
23
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, SearchResultsListComponentConfig } from '@configuration';
|
|
3
|
+
import { SearchResultsItem, SearchResultsListComponentModel } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Search Results List component is a wrapper around a group of {@link Components.SearchResultsItemComponent | Search Results Item} components.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-search-results-list>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Default Template
|
|
11
|
+
* 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.
|
|
12
|
+
* {@embed ./search-results-list.component.hbs}
|
|
13
|
+
*
|
|
14
|
+
* @category Search
|
|
15
|
+
*/
|
|
16
|
+
export declare class SearchResultsListComponent extends BaseComponent<SearchResultsListComponentConfig, Array<SearchResultsItem>, SearchResultsListComponentModel> {
|
|
17
|
+
protected componentName: keyof HawkSearchComponents;
|
|
18
|
+
protected defaultHtml: any;
|
|
19
|
+
protected bindFromEvent: boolean;
|
|
20
|
+
protected renderContent(): boolean;
|
|
21
|
+
protected getContentModel(): SearchResultsListComponentModel;
|
|
22
|
+
protected bindChildElements(): void;
|
|
23
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { HawkSearchComponents, SelectedFacetsComponentConfig } from '@configuration';
|
|
3
|
-
import { SelectedFacet, SelectedFacetsComponentModel } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Selected Facets component displays a list of facets that have been selected by the user.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-selected-facets>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-facet-field | `string` |
|
|
14
|
-
* | hawksearch-facet-value | `string` |
|
|
15
|
-
*
|
|
16
|
-
* When an element with both of these attributes is clicked, that facet selection will be removed and the search results will be updated.
|
|
17
|
-
*
|
|
18
|
-
* ## Default Template
|
|
19
|
-
* 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.
|
|
20
|
-
* {@embed ./selected-facets.component.hbs}
|
|
21
|
-
*
|
|
22
|
-
* @category Search
|
|
23
|
-
*/
|
|
24
|
-
export declare class SelectedFacetsComponent extends BaseComponent<SelectedFacetsComponentConfig, Array<SelectedFacet>, SelectedFacetsComponentModel> {
|
|
25
|
-
protected componentName: keyof HawkSearchComponents;
|
|
26
|
-
protected defaultHtml: any;
|
|
27
|
-
protected bindFromEvent: boolean;
|
|
28
|
-
protected renderContent(): boolean;
|
|
29
|
-
protected getContentModel(): SelectedFacetsComponentModel;
|
|
30
|
-
protected onRender(): void;
|
|
31
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { HawkSearchComponents, SelectedFacetsComponentConfig } from '@configuration';
|
|
3
|
+
import { SelectedFacet, SelectedFacetsComponentModel } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Selected Facets component displays a list of facets that have been selected by the user.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-selected-facets>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-facet-field | `string` |
|
|
14
|
+
* | hawksearch-facet-value | `string` |
|
|
15
|
+
*
|
|
16
|
+
* When an element with both of these attributes is clicked, that facet selection will be removed and the search results will be updated.
|
|
17
|
+
*
|
|
18
|
+
* ## Default Template
|
|
19
|
+
* 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.
|
|
20
|
+
* {@embed ./selected-facets.component.hbs}
|
|
21
|
+
*
|
|
22
|
+
* @category Search
|
|
23
|
+
*/
|
|
24
|
+
export declare class SelectedFacetsComponent extends BaseComponent<SelectedFacetsComponentConfig, Array<SelectedFacet>, SelectedFacetsComponentModel> {
|
|
25
|
+
protected componentName: keyof HawkSearchComponents;
|
|
26
|
+
protected defaultHtml: any;
|
|
27
|
+
protected bindFromEvent: boolean;
|
|
28
|
+
protected renderContent(): boolean;
|
|
29
|
+
protected getContentModel(): SelectedFacetsComponentModel;
|
|
30
|
+
protected onRender(): void;
|
|
31
|
+
}
|