@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,11 +1,11 @@
|
|
|
1
|
-
export * from './base-facet.component';
|
|
2
|
-
export * from './checkbox-list-facet/checkbox-list-facet.component';
|
|
3
|
-
export * from './color-facet/color-facet.component';
|
|
4
|
-
export * from './date-range-facet/date-range-facet.component';
|
|
5
|
-
export * from './linked-list-facet/link-list-facet.component';
|
|
6
|
-
export * from './numeric-range-facet/numeric-range-facet.component';
|
|
7
|
-
export * from './range-slider-facet/range-slider-facet.component';
|
|
8
|
-
export * from './recent-searches-facet/recent-searches-facet.component';
|
|
9
|
-
export * from './related-searches-facet/related-searches-facet.component';
|
|
10
|
-
export * from './search-within-facet/search-within-facet.component';
|
|
11
|
-
export * from './size-facet/size-facet.component';
|
|
1
|
+
export * from './base-facet.component';
|
|
2
|
+
export * from './checkbox-list-facet/checkbox-list-facet.component';
|
|
3
|
+
export * from './color-facet/color-facet.component';
|
|
4
|
+
export * from './date-range-facet/date-range-facet.component';
|
|
5
|
+
export * from './linked-list-facet/link-list-facet.component';
|
|
6
|
+
export * from './numeric-range-facet/numeric-range-facet.component';
|
|
7
|
+
export * from './range-slider-facet/range-slider-facet.component';
|
|
8
|
+
export * from './recent-searches-facet/recent-searches-facet.component';
|
|
9
|
+
export * from './related-searches-facet/related-searches-facet.component';
|
|
10
|
+
export * from './search-within-facet/search-within-facet.component';
|
|
11
|
+
export * from './size-facet/size-facet.component';
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { HawkSearchComponents, LinkListFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { LinkListFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Linked List Facet component renders a hyperlink for each value.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-link-list-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* *Note: For Event-Binding attributes common to all facet type components, see {@link Components.BaseFacetComponent}.*
|
|
12
|
-
*
|
|
13
|
-
* ## Default Template
|
|
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.
|
|
15
|
-
* {@embed ./link-list-facet.component.hbs}
|
|
16
|
-
*
|
|
17
|
-
* @category Facet Types
|
|
18
|
-
*/
|
|
19
|
-
export declare class LinkListFacetComponent extends BaseFacetComponent<LinkListFacetComponentConfig, LinkListFacetComponentModel> {
|
|
20
|
-
protected componentName: keyof HawkSearchComponents;
|
|
21
|
-
protected defaultHtml: any;
|
|
22
|
-
protected renderContent(): boolean;
|
|
23
|
-
protected getContentModel(): LinkListFacetComponentModel;
|
|
24
|
-
}
|
|
1
|
+
import { HawkSearchComponents, LinkListFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { LinkListFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Linked List Facet component renders a hyperlink for each value.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-link-list-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* *Note: For Event-Binding attributes common to all facet type components, see {@link Components.BaseFacetComponent}.*
|
|
12
|
+
*
|
|
13
|
+
* ## Default Template
|
|
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.
|
|
15
|
+
* {@embed ./link-list-facet.component.hbs}
|
|
16
|
+
*
|
|
17
|
+
* @category Facet Types
|
|
18
|
+
*/
|
|
19
|
+
export declare class LinkListFacetComponent extends BaseFacetComponent<LinkListFacetComponentConfig, LinkListFacetComponentModel> {
|
|
20
|
+
protected componentName: keyof HawkSearchComponents;
|
|
21
|
+
protected defaultHtml: any;
|
|
22
|
+
protected renderContent(): boolean;
|
|
23
|
+
protected getContentModel(): LinkListFacetComponentModel;
|
|
24
|
+
}
|
package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { HawkSearchComponents, NumericRangeFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { NumericRangeFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Numeric Range Facet component renders number input elements for minimum and maximum value.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-numeric-range-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-start | |
|
|
14
|
-
* | hawksearch-end | |
|
|
15
|
-
*
|
|
16
|
-
* These attributes should be placed on number input elements. When these elements lose focus (blurred), the entered range will be applied as a facet value.
|
|
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 ./numeric-range-facet.component.hbs}
|
|
21
|
-
*
|
|
22
|
-
* @category Facet Types
|
|
23
|
-
*/
|
|
24
|
-
export declare class NumericRangeFacetComponent extends BaseFacetComponent<NumericRangeFacetComponentConfig, NumericRangeFacetComponentModel> {
|
|
25
|
-
protected componentName: keyof HawkSearchComponents;
|
|
26
|
-
protected defaultHtml: any;
|
|
27
|
-
private get range();
|
|
28
|
-
protected renderContent(): boolean;
|
|
29
|
-
protected getContentModel(): NumericRangeFacetComponentModel;
|
|
30
|
-
protected onRender(): void;
|
|
31
|
-
private setFacetValue;
|
|
32
|
-
}
|
|
1
|
+
import { HawkSearchComponents, NumericRangeFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { NumericRangeFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Numeric Range Facet component renders number input elements for minimum and maximum value.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-numeric-range-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-start | |
|
|
14
|
+
* | hawksearch-end | |
|
|
15
|
+
*
|
|
16
|
+
* These attributes should be placed on number input elements. When these elements lose focus (blurred), the entered range will be applied as a facet value.
|
|
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 ./numeric-range-facet.component.hbs}
|
|
21
|
+
*
|
|
22
|
+
* @category Facet Types
|
|
23
|
+
*/
|
|
24
|
+
export declare class NumericRangeFacetComponent extends BaseFacetComponent<NumericRangeFacetComponentConfig, NumericRangeFacetComponentModel> {
|
|
25
|
+
protected componentName: keyof HawkSearchComponents;
|
|
26
|
+
protected defaultHtml: any;
|
|
27
|
+
private get range();
|
|
28
|
+
protected renderContent(): boolean;
|
|
29
|
+
protected getContentModel(): NumericRangeFacetComponentModel;
|
|
30
|
+
protected onRender(): void;
|
|
31
|
+
private setFacetValue;
|
|
32
|
+
}
|
package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { HawkSearchComponents, RangeSliderFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { RangeSliderFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Range Slider Facet component renders a {@link Components.RangeSliderComponent | Range Slider component} and number input elements for minimum and maximum value.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-range-slider-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-start | |
|
|
14
|
-
* | hawksearch-end | |
|
|
15
|
-
*
|
|
16
|
-
* These attributes should be placed on number input elements. When these elements lose focus (blurred), the entered range will be applied as a facet value.
|
|
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 ./range-slider-facet.component.hbs}
|
|
21
|
-
*
|
|
22
|
-
* @category Facet Types
|
|
23
|
-
*/
|
|
24
|
-
export declare class RangeSliderFacetComponent extends BaseFacetComponent<RangeSliderFacetComponentConfig, RangeSliderFacetComponentModel> {
|
|
25
|
-
protected componentName: keyof HawkSearchComponents;
|
|
26
|
-
protected defaultHtml: any;
|
|
27
|
-
private get range();
|
|
28
|
-
protected renderContent(): boolean;
|
|
29
|
-
protected getContentModel(): RangeSliderFacetComponentModel;
|
|
30
|
-
protected onRender(): void;
|
|
31
|
-
private getRange;
|
|
32
|
-
private updateInputElements;
|
|
33
|
-
private setFacetValue;
|
|
34
|
-
}
|
|
1
|
+
import { HawkSearchComponents, RangeSliderFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { RangeSliderFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Range Slider Facet component renders a {@link Components.RangeSliderComponent | Range Slider component} and number input elements for minimum and maximum value.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-range-slider-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-start | |
|
|
14
|
+
* | hawksearch-end | |
|
|
15
|
+
*
|
|
16
|
+
* These attributes should be placed on number input elements. When these elements lose focus (blurred), the entered range will be applied as a facet value.
|
|
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 ./range-slider-facet.component.hbs}
|
|
21
|
+
*
|
|
22
|
+
* @category Facet Types
|
|
23
|
+
*/
|
|
24
|
+
export declare class RangeSliderFacetComponent extends BaseFacetComponent<RangeSliderFacetComponentConfig, RangeSliderFacetComponentModel> {
|
|
25
|
+
protected componentName: keyof HawkSearchComponents;
|
|
26
|
+
protected defaultHtml: any;
|
|
27
|
+
private get range();
|
|
28
|
+
protected renderContent(): boolean;
|
|
29
|
+
protected getContentModel(): RangeSliderFacetComponentModel;
|
|
30
|
+
protected onRender(): void;
|
|
31
|
+
private getRange;
|
|
32
|
+
private updateInputElements;
|
|
33
|
+
private setFacetValue;
|
|
34
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { HawkSearchComponents, RecentSearchesFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { RecentSearchesFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Recent Searches Facet component displays a list of the five most recent searches performed by a user.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-recent-searches-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-query | `string` |
|
|
14
|
-
*
|
|
15
|
-
* When an element with this attribute is clicked, the click will be tracked and a new search will be executed with that query.
|
|
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 ./recent-searches-facet.component.hbs}
|
|
20
|
-
*
|
|
21
|
-
* @category Facet Types
|
|
22
|
-
*/
|
|
23
|
-
export declare class RecentSearchesFacetComponent extends BaseFacetComponent<RecentSearchesFacetComponentConfig, RecentSearchesFacetComponentModel> {
|
|
24
|
-
protected componentName: keyof HawkSearchComponents;
|
|
25
|
-
protected defaultHtml: any;
|
|
26
|
-
protected renderContent(): boolean;
|
|
27
|
-
protected getContentModel(): RecentSearchesFacetComponentModel;
|
|
28
|
-
protected onRender(): void;
|
|
29
|
-
}
|
|
1
|
+
import { HawkSearchComponents, RecentSearchesFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { RecentSearchesFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Recent Searches Facet component displays a list of the five most recent searches performed by a user.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-recent-searches-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-query | `string` |
|
|
14
|
+
*
|
|
15
|
+
* When an element with this attribute is clicked, the click will be tracked and a new search will be executed with that query.
|
|
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 ./recent-searches-facet.component.hbs}
|
|
20
|
+
*
|
|
21
|
+
* @category Facet Types
|
|
22
|
+
*/
|
|
23
|
+
export declare class RecentSearchesFacetComponent extends BaseFacetComponent<RecentSearchesFacetComponentConfig, RecentSearchesFacetComponentModel> {
|
|
24
|
+
protected componentName: keyof HawkSearchComponents;
|
|
25
|
+
protected defaultHtml: any;
|
|
26
|
+
protected renderContent(): boolean;
|
|
27
|
+
protected getContentModel(): RecentSearchesFacetComponentModel;
|
|
28
|
+
protected onRender(): void;
|
|
29
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { HawkSearchComponents, RelatedSearchesFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { RelatedSearchesFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Related Searches Facet component displays a list of queries related to the current query.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-related-searches-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-query | `string` |
|
|
14
|
-
*
|
|
15
|
-
* When an element with this attribute is clicked, the click will be tracked and a new search will be executed with that query.
|
|
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 ./related-searches-facet.component.hbs}
|
|
20
|
-
*
|
|
21
|
-
* @category Facet Types
|
|
22
|
-
*/
|
|
23
|
-
export declare class RelatedSearchesFacetComponent extends BaseFacetComponent<RelatedSearchesFacetComponentConfig, RelatedSearchesFacetComponentModel> {
|
|
24
|
-
protected componentName: keyof HawkSearchComponents;
|
|
25
|
-
protected defaultHtml: any;
|
|
26
|
-
protected renderContent(): boolean;
|
|
27
|
-
protected getContentModel(): RelatedSearchesFacetComponentModel;
|
|
28
|
-
protected onRender(): void;
|
|
29
|
-
}
|
|
1
|
+
import { HawkSearchComponents, RelatedSearchesFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { RelatedSearchesFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Related Searches Facet component displays a list of queries related to the current query.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-related-searches-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-query | `string` |
|
|
14
|
+
*
|
|
15
|
+
* When an element with this attribute is clicked, the click will be tracked and a new search will be executed with that query.
|
|
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 ./related-searches-facet.component.hbs}
|
|
20
|
+
*
|
|
21
|
+
* @category Facet Types
|
|
22
|
+
*/
|
|
23
|
+
export declare class RelatedSearchesFacetComponent extends BaseFacetComponent<RelatedSearchesFacetComponentConfig, RelatedSearchesFacetComponentModel> {
|
|
24
|
+
protected componentName: keyof HawkSearchComponents;
|
|
25
|
+
protected defaultHtml: any;
|
|
26
|
+
protected renderContent(): boolean;
|
|
27
|
+
protected getContentModel(): RelatedSearchesFacetComponentModel;
|
|
28
|
+
protected onRender(): void;
|
|
29
|
+
}
|
package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { HawkSearchComponents, SearchWithinFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { SearchWithinFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Search Within Facet component allows the user to enter keywords to further refine the list of search results.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-search-within-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-input | |
|
|
14
|
-
*
|
|
15
|
-
* When the value of an input element with this attribute changes, that value will be used to refine the list of search results.
|
|
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-within-facet.component.hbs}
|
|
20
|
-
*
|
|
21
|
-
* @category Facet Types
|
|
22
|
-
*/
|
|
23
|
-
export declare class SearchWithinFacetComponent extends BaseFacetComponent<SearchWithinFacetComponentConfig, SearchWithinFacetComponentModel> {
|
|
24
|
-
protected componentName: keyof HawkSearchComponents;
|
|
25
|
-
protected defaultHtml: any;
|
|
26
|
-
protected renderContent(): boolean;
|
|
27
|
-
protected getContentModel(): SearchWithinFacetComponentModel;
|
|
28
|
-
protected onRender(): void;
|
|
29
|
-
}
|
|
1
|
+
import { HawkSearchComponents, SearchWithinFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { SearchWithinFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Search Within Facet component allows the user to enter keywords to further refine the list of search results.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-search-within-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-input | |
|
|
14
|
+
*
|
|
15
|
+
* When the value of an input element with this attribute changes, that value will be used to refine the list of search results.
|
|
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-within-facet.component.hbs}
|
|
20
|
+
*
|
|
21
|
+
* @category Facet Types
|
|
22
|
+
*/
|
|
23
|
+
export declare class SearchWithinFacetComponent extends BaseFacetComponent<SearchWithinFacetComponentConfig, SearchWithinFacetComponentModel> {
|
|
24
|
+
protected componentName: keyof HawkSearchComponents;
|
|
25
|
+
protected defaultHtml: any;
|
|
26
|
+
protected renderContent(): boolean;
|
|
27
|
+
protected getContentModel(): SearchWithinFacetComponentModel;
|
|
28
|
+
protected onRender(): void;
|
|
29
|
+
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { HawkSearchComponents, SizeFacetComponentConfig } from '@configuration';
|
|
2
|
-
import { SizeFacetComponentModel } from '@models';
|
|
3
|
-
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
-
/**
|
|
5
|
-
* The Size Facet component displays a list of product sizes in a grid format.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-size-facet>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* *Note: For Event-Binding attributes common to all facet type components, see {@link Components.BaseFacetComponent}.*
|
|
12
|
-
*
|
|
13
|
-
* ## Default Template
|
|
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.
|
|
15
|
-
* {@embed ./size-facet.component.hbs}
|
|
16
|
-
*
|
|
17
|
-
* @category Facet Types
|
|
18
|
-
*/
|
|
19
|
-
export declare class SizeFacetComponent extends BaseFacetComponent<SizeFacetComponentConfig, SizeFacetComponentModel> {
|
|
20
|
-
protected componentName: keyof HawkSearchComponents;
|
|
21
|
-
protected defaultHtml: any;
|
|
22
|
-
protected renderContent(): boolean;
|
|
23
|
-
protected getContentModel(): SizeFacetComponentModel;
|
|
24
|
-
}
|
|
1
|
+
import { HawkSearchComponents, SizeFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { SizeFacetComponentModel } from '@models';
|
|
3
|
+
import { BaseFacetComponent } from '../base-facet.component';
|
|
4
|
+
/**
|
|
5
|
+
* The Size Facet component displays a list of product sizes in a grid format.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-size-facet>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* *Note: For Event-Binding attributes common to all facet type components, see {@link Components.BaseFacetComponent}.*
|
|
12
|
+
*
|
|
13
|
+
* ## Default Template
|
|
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.
|
|
15
|
+
* {@embed ./size-facet.component.hbs}
|
|
16
|
+
*
|
|
17
|
+
* @category Facet Types
|
|
18
|
+
*/
|
|
19
|
+
export declare class SizeFacetComponent extends BaseFacetComponent<SizeFacetComponentConfig, SizeFacetComponentModel> {
|
|
20
|
+
protected componentName: keyof HawkSearchComponents;
|
|
21
|
+
protected defaultHtml: any;
|
|
22
|
+
protected renderContent(): boolean;
|
|
23
|
+
protected getContentModel(): SizeFacetComponentModel;
|
|
24
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { FacetWrapperComponentConfig, HawkSearchComponents } from '@configuration';
|
|
3
|
-
import { Facet, FacetState, FacetWrapperComponentModel } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Facet Wrapper component adds functionality common to all facet types such as expand/collapse, tooltip, and value search.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-facet-wrapper>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-facet-heading | |
|
|
14
|
-
*
|
|
15
|
-
* When an element with this attribute is clicked, the {@link Models.FacetWrapperComponentModel.collapsed} value will be reversed. This is intended to show/hide the list of facet values to make the list of facets more manageable.
|
|
16
|
-
*
|
|
17
|
-
* | Name | Value |
|
|
18
|
-
* | :- | :- |
|
|
19
|
-
* | hawksearch-facet-search | |
|
|
20
|
-
*
|
|
21
|
-
* When the user types in an input element with this attribute, the {@link Models.FacetWrapperComponentModel.values} collection will be filtered to show only values containing the entered text.
|
|
22
|
-
*
|
|
23
|
-
* | Name | Value |
|
|
24
|
-
* | :- | :- |
|
|
25
|
-
* | hawksearch-facet | |
|
|
26
|
-
*
|
|
27
|
-
* The tag for each facet type must have this attribute to have data bound to it.
|
|
28
|
-
*
|
|
29
|
-
* This helper function returns the zero-padded day of the month from a provided date object.
|
|
30
|
-
*
|
|
31
|
-
* ## Default Template
|
|
32
|
-
* 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.
|
|
33
|
-
* {@embed ./facet-wrapper.component.hbs}
|
|
34
|
-
*
|
|
35
|
-
* @category Search
|
|
36
|
-
*/
|
|
37
|
-
export declare class FacetWrapperComponent extends BaseComponent<FacetWrapperComponentConfig, Facet, FacetWrapperComponentModel> {
|
|
38
|
-
protected componentName: keyof HawkSearchComponents;
|
|
39
|
-
protected defaultHtml: any;
|
|
40
|
-
protected bindFromEvent: boolean;
|
|
41
|
-
state: FacetState;
|
|
42
|
-
protected renderContent(): boolean;
|
|
43
|
-
protected getContentModel(): FacetWrapperComponentModel;
|
|
44
|
-
protected bindChildElements(): void;
|
|
45
|
-
protected onRender(): void;
|
|
46
|
-
private rebindChildElements;
|
|
47
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { FacetWrapperComponentConfig, HawkSearchComponents } from '@configuration';
|
|
3
|
+
import { Facet, FacetState, FacetWrapperComponentModel } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Facet Wrapper component adds functionality common to all facet types such as expand/collapse, tooltip, and value search.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-facet-wrapper>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-facet-heading | |
|
|
14
|
+
*
|
|
15
|
+
* When an element with this attribute is clicked, the {@link Models.FacetWrapperComponentModel.collapsed} value will be reversed. This is intended to show/hide the list of facet values to make the list of facets more manageable.
|
|
16
|
+
*
|
|
17
|
+
* | Name | Value |
|
|
18
|
+
* | :- | :- |
|
|
19
|
+
* | hawksearch-facet-search | |
|
|
20
|
+
*
|
|
21
|
+
* When the user types in an input element with this attribute, the {@link Models.FacetWrapperComponentModel.values} collection will be filtered to show only values containing the entered text.
|
|
22
|
+
*
|
|
23
|
+
* | Name | Value |
|
|
24
|
+
* | :- | :- |
|
|
25
|
+
* | hawksearch-facet | |
|
|
26
|
+
*
|
|
27
|
+
* The tag for each facet type must have this attribute to have data bound to it.
|
|
28
|
+
*
|
|
29
|
+
* This helper function returns the zero-padded day of the month from a provided date object.
|
|
30
|
+
*
|
|
31
|
+
* ## Default Template
|
|
32
|
+
* 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.
|
|
33
|
+
* {@embed ./facet-wrapper.component.hbs}
|
|
34
|
+
*
|
|
35
|
+
* @category Search
|
|
36
|
+
*/
|
|
37
|
+
export declare class FacetWrapperComponent extends BaseComponent<FacetWrapperComponentConfig, Facet, FacetWrapperComponentModel> {
|
|
38
|
+
protected componentName: keyof HawkSearchComponents;
|
|
39
|
+
protected defaultHtml: any;
|
|
40
|
+
protected bindFromEvent: boolean;
|
|
41
|
+
state: FacetState;
|
|
42
|
+
protected renderContent(): boolean;
|
|
43
|
+
protected getContentModel(): FacetWrapperComponentModel;
|
|
44
|
+
protected bindChildElements(): void;
|
|
45
|
+
protected onRender(): void;
|
|
46
|
+
private rebindChildElements;
|
|
47
|
+
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { BaseComponent } from '@components';
|
|
2
|
-
import { FacetsListComponentConfig, HawkSearchComponents } from '@configuration';
|
|
3
|
-
import { Facet, FacetsListComponentModel } from '@models';
|
|
4
|
-
/**
|
|
5
|
-
* The Facets List component displays a list of available facets with a toggle to expand/collapse on mobile devices.
|
|
6
|
-
*
|
|
7
|
-
* ## Tag
|
|
8
|
-
* The tag for this component is `<hawksearch-facets-list>`.
|
|
9
|
-
*
|
|
10
|
-
* ## Event-Binding Attributes
|
|
11
|
-
* | Name | Value |
|
|
12
|
-
* | :- | :- |
|
|
13
|
-
* | hawksearch-mobile-toggle | |
|
|
14
|
-
*
|
|
15
|
-
* When an element with this attribute is clicked, the {@link Models.FacetsListComponentModel.expanded} value will be reversed. This is intended to show/hide the list of facets on mobile devices.
|
|
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 ./facets-list.component.hbs}
|
|
20
|
-
*
|
|
21
|
-
* @category Search
|
|
22
|
-
*/
|
|
23
|
-
export declare class FacetsListComponent extends BaseComponent<FacetsListComponentConfig, Array<Facet>, FacetsListComponentModel> {
|
|
24
|
-
protected componentName: keyof HawkSearchComponents;
|
|
25
|
-
protected defaultHtml: any;
|
|
26
|
-
protected bindFromEvent: boolean;
|
|
27
|
-
private readonly state;
|
|
28
|
-
protected renderContent(): boolean;
|
|
29
|
-
protected getContentModel(): FacetsListComponentModel;
|
|
30
|
-
protected bindChildElements(): void;
|
|
31
|
-
protected onRender(): void;
|
|
32
|
-
}
|
|
1
|
+
import { BaseComponent } from '@components';
|
|
2
|
+
import { FacetsListComponentConfig, HawkSearchComponents } from '@configuration';
|
|
3
|
+
import { Facet, FacetsListComponentModel } from '@models';
|
|
4
|
+
/**
|
|
5
|
+
* The Facets List component displays a list of available facets with a toggle to expand/collapse on mobile devices.
|
|
6
|
+
*
|
|
7
|
+
* ## Tag
|
|
8
|
+
* The tag for this component is `<hawksearch-facets-list>`.
|
|
9
|
+
*
|
|
10
|
+
* ## Event-Binding Attributes
|
|
11
|
+
* | Name | Value |
|
|
12
|
+
* | :- | :- |
|
|
13
|
+
* | hawksearch-mobile-toggle | |
|
|
14
|
+
*
|
|
15
|
+
* When an element with this attribute is clicked, the {@link Models.FacetsListComponentModel.expanded} value will be reversed. This is intended to show/hide the list of facets on mobile devices.
|
|
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 ./facets-list.component.hbs}
|
|
20
|
+
*
|
|
21
|
+
* @category Search
|
|
22
|
+
*/
|
|
23
|
+
export declare class FacetsListComponent extends BaseComponent<FacetsListComponentConfig, Array<Facet>, FacetsListComponentModel> {
|
|
24
|
+
protected componentName: keyof HawkSearchComponents;
|
|
25
|
+
protected defaultHtml: any;
|
|
26
|
+
protected bindFromEvent: boolean;
|
|
27
|
+
private readonly state;
|
|
28
|
+
protected renderContent(): boolean;
|
|
29
|
+
protected getContentModel(): FacetsListComponentModel;
|
|
30
|
+
protected bindChildElements(): void;
|
|
31
|
+
protected onRender(): void;
|
|
32
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './autocomplete/autocomplete.component';
|
|
2
|
-
export * from './facet-types';
|
|
3
|
-
export * from './facet-wrapper/facet-wrapper.component';
|
|
4
|
-
export * from './facets-list/facets-list.component';
|
|
5
|
-
export * from './modified-query/modified-query.component';
|
|
6
|
-
export * from './page-size/page-size.component';
|
|
7
|
-
export * from './pagination/pagination.component';
|
|
8
|
-
export * from './query-suggestions/query-suggestions.component';
|
|
9
|
-
export * from './search-field/search-field.component';
|
|
10
|
-
export * from './search-results-item/search-results-item.component';
|
|
11
|
-
export * from './search-results-list/search-results-list.component';
|
|
12
|
-
export * from './search-results/search-results.component';
|
|
13
|
-
export * from './selected-facets/selected-facets.component';
|
|
14
|
-
export * from './sorting/sorting.component';
|
|
15
|
-
export * from './tabs/tabs.component';
|
|
1
|
+
export * from './autocomplete/autocomplete.component';
|
|
2
|
+
export * from './facet-types';
|
|
3
|
+
export * from './facet-wrapper/facet-wrapper.component';
|
|
4
|
+
export * from './facets-list/facets-list.component';
|
|
5
|
+
export * from './modified-query/modified-query.component';
|
|
6
|
+
export * from './page-size/page-size.component';
|
|
7
|
+
export * from './pagination/pagination.component';
|
|
8
|
+
export * from './query-suggestions/query-suggestions.component';
|
|
9
|
+
export * from './search-field/search-field.component';
|
|
10
|
+
export * from './search-results-item/search-results-item.component';
|
|
11
|
+
export * from './search-results-list/search-results-list.component';
|
|
12
|
+
export * from './search-results/search-results.component';
|
|
13
|
+
export * from './selected-facets/selected-facets.component';
|
|
14
|
+
export * from './sorting/sorting.component';
|
|
15
|
+
export * from './tabs/tabs.component';
|