@bridgeline-digital/hawksearch-handlebars-ui 2.0.0-beta.6 → 2.0.0-beta.8
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/content/content-types/custom-content/custom-content.component.d.ts +1 -1
- package/dist/components/content/content-types/featured-items-content/featured-items-content.component.d.ts +1 -1
- package/dist/components/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +1 -1
- package/dist/components/content/content-types/image-content/image-content.component.d.ts +1 -2
- package/dist/components/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +1 -1
- package/dist/components/content/content-zone/content-zone.component.d.ts +2 -2
- package/dist/components/general/date-picker/date-picker.component.d.ts +1 -1
- package/dist/components/general/range-slider/range-slider.component.d.ts +1 -1
- package/dist/components/general/tooltip/tooltip.component.d.ts +1 -1
- package/dist/components/index.d.ts +8 -8
- package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts +1 -1
- package/dist/components/search/autocomplete/autocomplete.component.d.ts +1 -1
- package/dist/components/search/facet-types/base-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/date-range-facet/date-range-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +1 -1
- package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts +1 -1
- package/dist/components/search/facet-wrapper/facet-wrapper.component.d.ts +1 -0
- package/dist/components/search/facets-list/facets-list.component.d.ts +1 -0
- package/dist/components/search/modified-query/modified-query.component.d.ts +1 -1
- package/dist/components/search/page-size/page-size.component.d.ts +1 -1
- package/dist/components/search/pagination/pagination.component.d.ts +2 -2
- package/dist/components/search/query-suggestions/query-suggestions.component.d.ts +1 -1
- package/dist/components/search/search-field/search-field.component.d.ts +1 -1
- package/dist/components/search/search-results-item/search-results-item.component.d.ts +1 -1
- package/dist/components/search/selected-facets/selected-facets.component.d.ts +1 -1
- package/dist/components/search/sorting/sorting.component.d.ts +1 -1
- package/dist/components/search/tabs/tabs.component.d.ts +1 -1
- package/dist/configuration/configuration.models.d.ts +41 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/component.models.d.ts +3 -0
- package/dist/models/raw/raw-recommendation.models.d.ts +1 -14
- package/dist/models/recommendation.models.d.ts +1 -5
- package/dist/services/base.service.d.ts +0 -9
- package/dist/services/recommendations.service.d.ts +1 -0
- package/dist/services/search.service.d.ts +1 -0
- package/dist/styles.deb5d9247e589cc159f67dd3a83d6112.css +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/Components.AutocompleteComponent.html +10 -10
- package/docs/classes/Components.BaseFacetComponent.html +10 -10
- package/docs/classes/Components.CheckboxListFacetComponent.html +1 -1
- package/docs/classes/Components.ContentZoneComponent.html +2 -2
- package/docs/classes/Components.CustomContentComponent.html +1 -1
- package/docs/classes/Components.DatePickerComponent.html +10 -10
- package/docs/classes/Components.DateRangeFacetComponent.html +10 -10
- package/docs/classes/Components.FacetWrapperComponent.html +5 -5
- package/docs/classes/Components.FacetsListComponent.html +5 -5
- package/docs/classes/Components.FeaturedItemsContentComponent.html +1 -1
- package/docs/classes/Components.FeaturedItemsContentItemComponent.html +10 -10
- package/docs/classes/Components.ImageContentComponent.html +6 -6
- package/docs/classes/Components.ModifiedQueryComponent.html +10 -10
- package/docs/classes/Components.NumericRangeFacetComponent.html +10 -10
- package/docs/classes/Components.PageSizeComponent.html +10 -10
- package/docs/classes/Components.PaginationComponent.html +11 -11
- package/docs/classes/Components.PopularQueriesContentComponent.html +10 -10
- package/docs/classes/Components.QuerySuggestionsComponent.html +10 -10
- package/docs/classes/Components.RangeSliderComponent.html +10 -10
- package/docs/classes/Components.RangeSliderFacetComponent.html +10 -10
- package/docs/classes/Components.RecentSearchesFacetComponent.html +10 -10
- package/docs/classes/Components.RecommendationsItemComponent.html +10 -10
- package/docs/classes/Components.RelatedSearchesFacetComponent.html +10 -10
- package/docs/classes/Components.SearchFieldComponent.html +10 -10
- package/docs/classes/Components.SearchResultsItemComponent.html +10 -10
- package/docs/classes/Components.SearchWithinFacetComponent.html +10 -10
- package/docs/classes/Components.SelectedFacetsComponent.html +10 -10
- package/docs/classes/Components.SortingComponent.html +10 -10
- package/docs/classes/Components.TabsComponent.html +10 -10
- package/docs/classes/Components.TooltipComponent.html +10 -10
- package/docs/classes/Services.AutocompleteService.html +0 -23
- package/docs/classes/Services.RecommendationsService.html +0 -23
- package/docs/classes/Services.SearchService.html +0 -23
- package/docs/classes/Services.TrackingService.html +0 -23
- package/docs/index.html +37 -11
- package/docs/interfaces/Configuration.CheckboxListFacetComponentConfig.html +7 -2
- package/docs/interfaces/Configuration.ColorFacetComponentConfig.html +7 -2
- package/docs/interfaces/Configuration.HawkSearchConfig.html +126 -68
- package/docs/interfaces/Configuration.SizeFacetComponentConfig.html +7 -2
- package/docs/interfaces/Models.CheckboxListFacetComponentModel.html +5 -0
- package/docs/interfaces/Models.ColorFacetComponentModel.html +7 -2
- package/docs/interfaces/Models.RecommendationsItem.html +1 -21
- package/docs/interfaces/Models.RecommendationsItemComponentModel.html +1 -25
- package/docs/interfaces/Models.SizeFacetComponentModel.html +7 -2
- package/docs/modules/Components.html +2 -2
- package/package.json +2 -2
- package/readme.md +37 -37
- package/dist/styles.aa9202d77d6b6a9dfb89f5bfe5873220.css +0 -1
|
@@ -2,7 +2,7 @@ import { CustomContentComponentConfig, HawkSearchComponents } from '@configurati
|
|
|
2
2
|
import { CustomContent, CustomContentComponentModel } from '@models';
|
|
3
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
4
4
|
/**
|
|
5
|
-
* The Custom Content component renders HTML defined in
|
|
5
|
+
* The Custom Content component renders HTML defined in HawkSearch.
|
|
6
6
|
*
|
|
7
7
|
* ## Tag
|
|
8
8
|
* The tag for this component is `<hawksearch-custom-content>`.
|
|
@@ -2,7 +2,7 @@ import { FeaturedItemsContentComponentConfig, HawkSearchComponents } from '@conf
|
|
|
2
2
|
import { FeaturedItemsContent, FeaturedItemsContentComponentModel } from '@models';
|
|
3
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
4
4
|
/**
|
|
5
|
-
* The Featured Items Content component renders a custom list of search results (typically products) defined as Spotlights in
|
|
5
|
+
* The Featured Items Content component renders a custom list of search results (typically products) defined as Spotlights in HawkSearch. This is commonly used to display a default set of products when a query returns no results.
|
|
6
6
|
*
|
|
7
7
|
* ## Tag
|
|
8
8
|
* The tag for this component is `<hawksearch-featured-items-content>`.
|
|
@@ -34,5 +34,5 @@ export declare class FeaturedItemsContentItemComponent extends BaseComponent<Fea
|
|
|
34
34
|
protected bindFromEvent: boolean;
|
|
35
35
|
protected renderContent(): boolean;
|
|
36
36
|
protected getContentModel(): FeaturedItemsContentItemComponentModel;
|
|
37
|
-
protected
|
|
37
|
+
protected onRender(): void;
|
|
38
38
|
}
|
|
@@ -2,7 +2,7 @@ import { HawkSearchComponents, ImageContentComponentConfig } from '@configuratio
|
|
|
2
2
|
import { ImageContent, ImageContentComponentModel } from '@models';
|
|
3
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
4
4
|
/**
|
|
5
|
-
* The Image Content component displays an image defined in
|
|
5
|
+
* The Image Content component displays an image defined in HawkSearch.
|
|
6
6
|
*
|
|
7
7
|
* ## Tag
|
|
8
8
|
* The tag for this component is `<hawksearch-image-content>`.
|
|
@@ -19,5 +19,4 @@ export declare class ImageContentComponent extends BaseContentComponent<ImageCon
|
|
|
19
19
|
protected renderContent(): boolean;
|
|
20
20
|
protected getContentModel(): ImageContentComponentModel;
|
|
21
21
|
protected onRender(): void;
|
|
22
|
-
protected bindChildElements(): void;
|
|
23
22
|
}
|
|
@@ -18,5 +18,5 @@ export declare class PopularQueriesContentComponent extends BaseContentComponent
|
|
|
18
18
|
protected defaultHtml: any;
|
|
19
19
|
protected renderContent(): boolean;
|
|
20
20
|
protected getContentModel(): PopularQueriesContentComponentModel;
|
|
21
|
-
protected
|
|
21
|
+
protected onRender(): void;
|
|
22
22
|
}
|
|
@@ -2,7 +2,7 @@ import { ContentZoneComponentConfig, HawkSearchComponents } from '@configuration
|
|
|
2
2
|
import { ContentZoneComponentModel, SearchResponse } from '@models';
|
|
3
3
|
import { BaseComponent } from '../../base.component';
|
|
4
4
|
/**
|
|
5
|
-
* The Content Zone component renders a list of content items or Spotlight products as defined in the Merchandising section of
|
|
5
|
+
* The Content Zone component renders a list of content items or Spotlight products as defined in the Merchandising section of HawkSearch.
|
|
6
6
|
*
|
|
7
7
|
* ## Tag
|
|
8
8
|
* The tag for this component is `<hawksearch-content-zone>`.
|
|
@@ -12,7 +12,7 @@ import { BaseComponent } from '../../base.component';
|
|
|
12
12
|
* | :- | :- | :- |
|
|
13
13
|
* | name | `string` | Yes |
|
|
14
14
|
*
|
|
15
|
-
* The `name` attribute corresponds to the `Zone` property defined in
|
|
15
|
+
* The `name` attribute corresponds to the `Zone` property defined in HawkSearch. This is used to differentiate different content areas, allowing you to place content items exactly where you want within your search results page.
|
|
16
16
|
*
|
|
17
17
|
* ## Event-Binding Attributes
|
|
18
18
|
* | Name | Value |
|
|
@@ -109,7 +109,7 @@ export declare class DatePickerComponent extends BaseComponent<DatePickerCompone
|
|
|
109
109
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
110
110
|
protected registerHelpers(): void;
|
|
111
111
|
protected getContentModel(): DatePickerComponentModel;
|
|
112
|
-
protected
|
|
112
|
+
protected onRender(): void;
|
|
113
113
|
private positionModal;
|
|
114
114
|
private getYears;
|
|
115
115
|
private getWeeks;
|
|
@@ -48,7 +48,7 @@ export declare class RangeSliderComponent extends BaseComponent<RangeSliderCompo
|
|
|
48
48
|
private setStart;
|
|
49
49
|
private setEnd;
|
|
50
50
|
protected getContentModel(): RangeSliderComponentModel;
|
|
51
|
-
protected
|
|
51
|
+
protected onRender(): void;
|
|
52
52
|
private onMouseUp;
|
|
53
53
|
private onMouseMove;
|
|
54
54
|
}
|
|
@@ -28,5 +28,5 @@ export declare class TooltipComponent extends BaseComponent<TooltipComponentConf
|
|
|
28
28
|
private get text();
|
|
29
29
|
protected renderContent(): boolean;
|
|
30
30
|
protected getContentModel(): TooltipComponentModel;
|
|
31
|
-
protected
|
|
31
|
+
protected onRender(): void;
|
|
32
32
|
}
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
* <html>
|
|
21
21
|
* <head>
|
|
22
22
|
* <meta charset="utf-8" />
|
|
23
|
-
* <title>
|
|
23
|
+
* <title>HawkSearch Handlebars UI</title>
|
|
24
24
|
* <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
25
25
|
* <script type="text/javascript">
|
|
26
|
-
* var
|
|
26
|
+
* var HawkSearch = HawkSearch || {};
|
|
27
27
|
*
|
|
28
|
-
*
|
|
28
|
+
* HawkSearch.config = {
|
|
29
29
|
* clientId: "YOUR_CLIENTID_HERE",
|
|
30
30
|
* components: {
|
|
31
31
|
* pageSize: {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
* <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
|
|
45
45
|
* </head>
|
|
46
46
|
* <body>
|
|
47
|
-
* <h1>
|
|
47
|
+
* <h1>HawkSearch Handlebars UI</h1>
|
|
48
48
|
* <hawksearch-search></hawksearch-search>
|
|
49
49
|
* <hawksearch-results></hawksearch-results>
|
|
50
50
|
* </body>
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
* <html>
|
|
61
61
|
* <head>
|
|
62
62
|
* <meta charset="utf-8" />
|
|
63
|
-
* <title>
|
|
63
|
+
* <title>HawkSearch Handlebars UI</title>
|
|
64
64
|
* <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
65
65
|
* <script type="text/javascript">
|
|
66
|
-
* var
|
|
66
|
+
* var HawkSearch = HawkSearch || {};
|
|
67
67
|
*
|
|
68
|
-
*
|
|
68
|
+
* HawkSearch.config = {
|
|
69
69
|
* clientId: "f51060e1c38446f0bacdf283390c37e8",
|
|
70
70
|
* components: {
|
|
71
71
|
* pageSize: {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
* <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
|
|
78
78
|
* </head>
|
|
79
79
|
* <body>
|
|
80
|
-
* <h1>
|
|
80
|
+
* <h1>HawkSearch Handlebars UI</h1>
|
|
81
81
|
* <hawksearch-search></hawksearch-search>
|
|
82
82
|
* <hawksearch-results></hawksearch-results>
|
|
83
83
|
* <template id="page-size-template">
|
package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts
CHANGED
|
@@ -36,5 +36,5 @@ export declare class RecommendationsItemComponent extends BaseComponent<Recommen
|
|
|
36
36
|
private get requestId();
|
|
37
37
|
protected renderContent(): boolean;
|
|
38
38
|
protected getContentModel(): RecommendationsItemComponentModel;
|
|
39
|
-
protected
|
|
39
|
+
protected onRender(): void;
|
|
40
40
|
}
|
|
@@ -54,6 +54,6 @@ export declare class AutocompleteComponent extends BaseComponent<AutocompleteCom
|
|
|
54
54
|
protected defaultHtml: any;
|
|
55
55
|
protected renderContent(): boolean;
|
|
56
56
|
protected getContentModel(): AutocompleteComponentModel;
|
|
57
|
-
protected
|
|
57
|
+
protected onRender(): void;
|
|
58
58
|
private close;
|
|
59
59
|
}
|
|
@@ -40,5 +40,5 @@ import { BaseComponent } from '../../base.component';
|
|
|
40
40
|
export declare abstract class BaseFacetComponent<TConfig extends BaseComponentConfig, TModel extends BaseComponentModel> extends BaseComponent<TConfig, Facet, TModel> {
|
|
41
41
|
protected bindFromEvent: boolean;
|
|
42
42
|
state: FacetState;
|
|
43
|
-
protected
|
|
43
|
+
protected onRender(): void;
|
|
44
44
|
}
|
package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { CheckboxListFacetComponentConfig, HawkSearchComponents } from '@configu
|
|
|
2
2
|
import { CheckboxListFacetComponentModel } from '@models';
|
|
3
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
4
|
/**
|
|
5
|
-
* The Checkbox List Facet component renders a checkbox for each facet and may be nested depending on the configuration in the
|
|
5
|
+
* The Checkbox List Facet component renders a checkbox for each facet and may be nested depending on the configuration in the HawkSearch admin.
|
|
6
6
|
*
|
|
7
7
|
* ## Tag
|
|
8
8
|
* The tag for this component is `<hawksearch-checkbox-list-facet>`.
|
|
@@ -27,7 +27,7 @@ export declare class DateRangeFacetComponent extends BaseFacetComponent<DateRang
|
|
|
27
27
|
private get range();
|
|
28
28
|
protected renderContent(): boolean;
|
|
29
29
|
protected getContentModel(): DateRangeFacetComponentModel;
|
|
30
|
-
protected
|
|
30
|
+
protected onRender(): void;
|
|
31
31
|
private updateInputElements;
|
|
32
32
|
private setFacetValue;
|
|
33
33
|
}
|
package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts
CHANGED
|
@@ -27,6 +27,6 @@ export declare class NumericRangeFacetComponent extends BaseFacetComponent<Numer
|
|
|
27
27
|
private get range();
|
|
28
28
|
protected renderContent(): boolean;
|
|
29
29
|
protected getContentModel(): NumericRangeFacetComponentModel;
|
|
30
|
-
protected
|
|
30
|
+
protected onRender(): void;
|
|
31
31
|
private setFacetValue;
|
|
32
32
|
}
|
package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare class RangeSliderFacetComponent extends BaseFacetComponent<RangeS
|
|
|
27
27
|
private get range();
|
|
28
28
|
protected renderContent(): boolean;
|
|
29
29
|
protected getContentModel(): RangeSliderFacetComponentModel;
|
|
30
|
-
protected
|
|
30
|
+
protected onRender(): void;
|
|
31
31
|
private getRange;
|
|
32
32
|
private updateInputElements;
|
|
33
33
|
private setFacetValue;
|
|
@@ -25,5 +25,5 @@ export declare class RecentSearchesFacetComponent extends BaseFacetComponent<Rec
|
|
|
25
25
|
protected defaultHtml: any;
|
|
26
26
|
protected renderContent(): boolean;
|
|
27
27
|
protected getContentModel(): RecentSearchesFacetComponentModel;
|
|
28
|
-
protected
|
|
28
|
+
protected onRender(): void;
|
|
29
29
|
}
|
|
@@ -25,5 +25,5 @@ export declare class RelatedSearchesFacetComponent extends BaseFacetComponent<Re
|
|
|
25
25
|
protected defaultHtml: any;
|
|
26
26
|
protected renderContent(): boolean;
|
|
27
27
|
protected getContentModel(): RelatedSearchesFacetComponentModel;
|
|
28
|
-
protected
|
|
28
|
+
protected onRender(): void;
|
|
29
29
|
}
|
package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts
CHANGED
|
@@ -25,5 +25,5 @@ export declare class SearchWithinFacetComponent extends BaseFacetComponent<Searc
|
|
|
25
25
|
protected defaultHtml: any;
|
|
26
26
|
protected renderContent(): boolean;
|
|
27
27
|
protected getContentModel(): SearchWithinFacetComponentModel;
|
|
28
|
-
protected
|
|
28
|
+
protected onRender(): void;
|
|
29
29
|
}
|
|
@@ -42,5 +42,6 @@ export declare class FacetWrapperComponent extends BaseComponent<FacetWrapperCom
|
|
|
42
42
|
protected renderContent(): boolean;
|
|
43
43
|
protected getContentModel(): FacetWrapperComponentModel;
|
|
44
44
|
protected bindChildElements(): void;
|
|
45
|
+
protected onRender(): void;
|
|
45
46
|
private rebindChildElements;
|
|
46
47
|
}
|
|
@@ -28,5 +28,5 @@ export declare class ModifiedQueryComponent extends BaseComponent<ModifiedQueryC
|
|
|
28
28
|
protected bindFromEvent: boolean;
|
|
29
29
|
protected renderContent(): boolean;
|
|
30
30
|
protected getContentModel(): ModifiedQueryComponentModel;
|
|
31
|
-
protected
|
|
31
|
+
protected onRender(): void;
|
|
32
32
|
}
|
|
@@ -28,5 +28,5 @@ export declare class PageSizeComponent extends BaseComponent<PageSizeComponentCo
|
|
|
28
28
|
protected bindFromEvent: boolean;
|
|
29
29
|
protected renderContent(): boolean;
|
|
30
30
|
protected getContentModel(): PageSizeComponentModel;
|
|
31
|
-
protected
|
|
31
|
+
protected onRender(): void;
|
|
32
32
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseComponent } from '../../base.component';
|
|
|
4
4
|
/**
|
|
5
5
|
* The Pagination component is used to navigate between different pages of a search results set.
|
|
6
6
|
*
|
|
7
|
-
* *Note: If no maximum number of page links to display is configured in the
|
|
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
8
|
*
|
|
9
9
|
* ## Tag
|
|
10
10
|
* The tag for this component is `<hawksearch-pagination>`.
|
|
@@ -37,7 +37,7 @@ export declare class PaginationComponent extends BaseComponent<PaginationCompone
|
|
|
37
37
|
protected registerHelpers(): void;
|
|
38
38
|
protected renderContent(): boolean;
|
|
39
39
|
protected getContentModel(): PaginationComponentModel;
|
|
40
|
-
protected
|
|
40
|
+
protected onRender(): void;
|
|
41
41
|
protected setPage(page: number): Promise<void>;
|
|
42
42
|
private getPages;
|
|
43
43
|
}
|
|
@@ -34,5 +34,5 @@ export declare class QuerySuggestionsComponent extends BaseComponent<QuerySugges
|
|
|
34
34
|
protected registerHelpers(): void;
|
|
35
35
|
protected renderContent(): boolean;
|
|
36
36
|
protected getContentModel(): QuerySuggestionsComponentModel;
|
|
37
|
-
protected
|
|
37
|
+
protected onRender(): void;
|
|
38
38
|
}
|
|
@@ -28,6 +28,6 @@ export declare class SearchFieldComponent extends BaseComponent<SearchFieldCompo
|
|
|
28
28
|
connectedCallback(): void;
|
|
29
29
|
disconnectedCallback(): void;
|
|
30
30
|
protected getContentModel(): SearchFieldComponentModel;
|
|
31
|
-
protected
|
|
31
|
+
protected onRender(): void;
|
|
32
32
|
private toggleAutocomplete;
|
|
33
33
|
}
|
|
@@ -34,5 +34,5 @@ export declare class SearchResultsItemComponent extends BaseComponent<SearchResu
|
|
|
34
34
|
protected bindFromEvent: boolean;
|
|
35
35
|
protected renderContent(): boolean;
|
|
36
36
|
protected getContentModel(): SearchResultsItemComponentModel;
|
|
37
|
-
protected
|
|
37
|
+
protected onRender(): void;
|
|
38
38
|
}
|
|
@@ -27,5 +27,5 @@ export declare class SelectedFacetsComponent extends BaseComponent<SelectedFacet
|
|
|
27
27
|
protected bindFromEvent: boolean;
|
|
28
28
|
protected renderContent(): boolean;
|
|
29
29
|
protected getContentModel(): SelectedFacetsComponentModel;
|
|
30
|
-
protected
|
|
30
|
+
protected onRender(): void;
|
|
31
31
|
}
|
|
@@ -26,5 +26,5 @@ export declare class SortingComponent extends BaseComponent<SortingComponentConf
|
|
|
26
26
|
protected bindFromEvent: boolean;
|
|
27
27
|
protected renderContent(): boolean;
|
|
28
28
|
protected getContentModel(): SortingComponentModel;
|
|
29
|
-
protected
|
|
29
|
+
protected onRender(): void;
|
|
30
30
|
}
|
|
@@ -26,5 +26,5 @@ export declare class TabsComponent extends BaseComponent<TabsComponentConfig, Fa
|
|
|
26
26
|
protected bindFromEvent: boolean;
|
|
27
27
|
protected renderContent(): boolean;
|
|
28
28
|
protected getContentModel(): TabsComponentModel;
|
|
29
|
-
protected
|
|
29
|
+
protected onRender(): void;
|
|
30
30
|
}
|
|
@@ -19,6 +19,7 @@ export interface BaseComponentConfig {
|
|
|
19
19
|
export interface AutocompleteComponentConfig extends BaseComponentConfig {
|
|
20
20
|
}
|
|
21
21
|
export interface CheckboxListFacetComponentConfig extends BaseComponentConfig {
|
|
22
|
+
excludeEnabled?: boolean;
|
|
22
23
|
strings?: {
|
|
23
24
|
collapse?: string;
|
|
24
25
|
exclude?: string;
|
|
@@ -29,6 +30,7 @@ export interface CheckboxListFacetComponentConfig extends BaseComponentConfig {
|
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
export interface ColorFacetComponentConfig extends BaseComponentConfig {
|
|
33
|
+
excludeEnabled?: boolean;
|
|
32
34
|
strings?: {
|
|
33
35
|
exclude?: string;
|
|
34
36
|
include?: string;
|
|
@@ -176,6 +178,7 @@ export interface SelectedFacetsComponentConfig extends BaseComponentConfig {
|
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
export interface SizeFacetComponentConfig extends BaseComponentConfig {
|
|
181
|
+
excludeEnabled?: boolean;
|
|
179
182
|
strings?: {
|
|
180
183
|
exclude?: string;
|
|
181
184
|
include?: string;
|
|
@@ -258,7 +261,7 @@ export interface HawkSearchConfig {
|
|
|
258
261
|
*/
|
|
259
262
|
css?: {
|
|
260
263
|
/**
|
|
261
|
-
* URL to
|
|
264
|
+
* One or more style sets to be loaded. This can be either a URL to an external stylesheet, the ID of a `template` element wrapping around a `style` element, or a string containing CSS rules.
|
|
262
265
|
*/
|
|
263
266
|
customStyles?: string | Array<string>;
|
|
264
267
|
/**
|
|
@@ -295,7 +298,42 @@ export interface HawkSearchConfig {
|
|
|
295
298
|
/**
|
|
296
299
|
* Map item attributes to common object properties
|
|
297
300
|
*/
|
|
298
|
-
|
|
301
|
+
recommendationsFieldMappings?: {
|
|
302
|
+
/**
|
|
303
|
+
* #### Default Value
|
|
304
|
+
* `'longdescription'`
|
|
305
|
+
*/
|
|
306
|
+
description?: string;
|
|
307
|
+
/**
|
|
308
|
+
* #### Default Value
|
|
309
|
+
* `'image'`
|
|
310
|
+
*/
|
|
311
|
+
imageUrl?: string;
|
|
312
|
+
/**
|
|
313
|
+
* #### Default Value
|
|
314
|
+
* `'price'`
|
|
315
|
+
*/
|
|
316
|
+
price?: string;
|
|
317
|
+
/**
|
|
318
|
+
* #### Default Value
|
|
319
|
+
* `'saleprice'`
|
|
320
|
+
*/
|
|
321
|
+
salePrice?: string;
|
|
322
|
+
/**
|
|
323
|
+
* #### Default Value
|
|
324
|
+
* `'itemname'`
|
|
325
|
+
*/
|
|
326
|
+
title?: string;
|
|
327
|
+
/**
|
|
328
|
+
* #### Default Value
|
|
329
|
+
* `'url'`
|
|
330
|
+
*/
|
|
331
|
+
url?: string;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Map item attributes to common object properties
|
|
335
|
+
*/
|
|
336
|
+
searchResultsFieldMappings?: {
|
|
299
337
|
/**
|
|
300
338
|
* #### Default Value
|
|
301
339
|
* `'longdescription'`
|
|
@@ -352,7 +390,7 @@ export interface HawkSearchConfig {
|
|
|
352
390
|
*/
|
|
353
391
|
itemTypes?: {
|
|
354
392
|
/**
|
|
355
|
-
* If the value a search result item is missing a value for the field mapped to {@link HawkSearchConfig.
|
|
393
|
+
* If the value a search result item is missing a value for the field mapped to {@link HawkSearchConfig.searchResultsFieldMappings | type}, this value will be assumed.
|
|
356
394
|
*
|
|
357
395
|
* #### Default Value
|
|
358
396
|
* `'content'`
|