@bridgeline-digital/hawksearch-handlebars-ui 4.0.3 → 5.0.0-beta.2

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.
Files changed (86) hide show
  1. package/changelog.md +95 -78
  2. package/dist/components/base.component.d.ts +139 -139
  3. package/dist/components/content/content-types/base-content.component.d.ts +9 -9
  4. package/dist/components/content/content-types/custom-content/custom-content.component.d.ts +21 -21
  5. package/dist/components/content/content-types/featured-items-content/featured-items-content.component.d.ts +22 -22
  6. package/dist/components/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +39 -38
  7. package/dist/components/content/content-types/image-content/image-content.component.d.ts +22 -22
  8. package/dist/components/content/content-types/index.d.ts +6 -6
  9. package/dist/components/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +22 -22
  10. package/dist/components/content/content-zone/content-zone.component.d.ts +44 -44
  11. package/dist/components/content/index.d.ts +2 -2
  12. package/dist/components/general/date-picker/date-picker.component.d.ts +117 -117
  13. package/dist/components/general/icon/icon.component.d.ts +38 -38
  14. package/dist/components/general/index.d.ts +5 -5
  15. package/dist/components/general/range-slider/range-slider.component.d.ts +54 -54
  16. package/dist/components/general/rating/rating.component.d.ts +39 -39
  17. package/dist/components/general/tooltip/tooltip.component.d.ts +32 -32
  18. package/dist/components/index.d.ts +229 -228
  19. package/dist/components/landing-pages/index.d.ts +1 -1
  20. package/dist/components/landing-pages/landing-page/landing-page.component.d.ts +32 -32
  21. package/dist/components/recommendations/index.d.ts +2 -2
  22. package/dist/components/recommendations/recommendations/recommendations.component.d.ts +87 -87
  23. package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts +40 -40
  24. package/dist/components/search/autocomplete/autocomplete.component.d.ts +59 -59
  25. package/dist/components/search/facet-types/base-facet.component.d.ts +44 -44
  26. package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +36 -36
  27. package/dist/components/search/facet-types/color-facet/color-facet.component.d.ts +24 -24
  28. package/dist/components/search/facet-types/date-range-facet/date-range-facet.component.d.ts +33 -33
  29. package/dist/components/search/facet-types/index.d.ts +11 -11
  30. package/dist/components/search/facet-types/linked-list-facet/link-list-facet.component.d.ts +24 -24
  31. package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +32 -32
  32. package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +34 -34
  33. package/dist/components/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +29 -29
  34. package/dist/components/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +29 -29
  35. package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts +29 -29
  36. package/dist/components/search/facet-types/size-facet/size-facet.component.d.ts +24 -24
  37. package/dist/components/search/facet-wrapper/facet-wrapper.component.d.ts +47 -47
  38. package/dist/components/search/facets-list/facets-list.component.d.ts +32 -32
  39. package/dist/components/search/index.d.ts +15 -15
  40. package/dist/components/search/modified-query/modified-query.component.d.ts +32 -32
  41. package/dist/components/search/page-size/page-size.component.d.ts +32 -32
  42. package/dist/components/search/pagination/pagination.component.d.ts +43 -43
  43. package/dist/components/search/query-suggestions/query-suggestions.component.d.ts +38 -38
  44. package/dist/components/search/search-field/search-field.component.d.ts +38 -38
  45. package/dist/components/search/search-results/search-results.component.d.ts +34 -34
  46. package/dist/components/search/search-results-item/search-results-item.component.d.ts +38 -38
  47. package/dist/components/search/search-results-list/search-results-list.component.d.ts +23 -23
  48. package/dist/components/search/selected-facets/selected-facets.component.d.ts +31 -31
  49. package/dist/components/search/sorting/sorting.component.d.ts +30 -30
  50. package/dist/components/search/tabs/tabs.component.d.ts +30 -30
  51. package/dist/components/variants/index.d.ts +1 -0
  52. package/dist/components/variants/variant-selector/variant-selector.component.d.ts +23 -0
  53. package/dist/configuration/configuration.models.d.ts +574 -564
  54. package/dist/configuration/index.d.ts +4 -4
  55. package/dist/helpers/helpers.d.ts +200 -182
  56. package/dist/helpers/index.d.ts +4 -4
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.js +1 -1
  59. package/dist/index.js.map +1 -1
  60. package/dist/models/autocomplete.models.d.ts +85 -93
  61. package/dist/models/base.models.d.ts +50 -0
  62. package/dist/models/component.models.d.ts +453 -442
  63. package/dist/models/content.models.d.ts +94 -85
  64. package/dist/models/index.d.ts +11 -10
  65. package/dist/models/raw/index.d.ts +4 -3
  66. package/dist/models/raw/raw-autocomplete.models.d.ts +51 -51
  67. package/dist/models/raw/raw-base.models.d.ts +8 -0
  68. package/dist/models/raw/raw-recommendation.models.d.ts +39 -29
  69. package/dist/models/raw/raw-search.models.d.ts +191 -184
  70. package/dist/models/recommendation.models.d.ts +31 -39
  71. package/dist/models/search.models.d.ts +237 -245
  72. package/dist/models/tracking.models.d.ts +42 -42
  73. package/dist/services/autocomplete.service.d.ts +10 -11
  74. package/dist/services/base.service.d.ts +62 -24
  75. package/dist/services/index.d.ts +8 -7
  76. package/dist/services/recommendations.service.d.ts +10 -11
  77. package/dist/services/search.service.d.ts +50 -51
  78. package/dist/services/tracking.service.d.ts +29 -29
  79. package/dist/styles.69909e432fb2cc23cf6e035925be065f.css +1 -0
  80. package/dist/utilities/colors.d.ts +1 -0
  81. package/dist/utilities/dates.d.ts +4 -4
  82. package/dist/utilities/formatters.d.ts +4 -4
  83. package/dist/utilities/index.d.ts +6 -5
  84. package/package.json +3 -3
  85. package/readme.md +1 -1
  86. package/dist/styles.d47f79757b4a33d3db5809736c115e15.css +0 -1
@@ -1,38 +1,38 @@
1
- import { HawkSearchComponents, SearchResultsItemComponentConfig } from '@configuration';
2
- import { SearchResultsItem, SearchResultsItemComponentModel } from '@models';
3
- import { BaseComponent } from '../../base.component';
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 { HawkSearchComponents, SearchResultsListComponentConfig } from '@configuration';
2
- import { SearchResultsItem, SearchResultsListComponentModel } from '@models';
3
- import { BaseComponent } from '../../base.component';
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 { HawkSearchComponents, SelectedFacetsComponentConfig } from '@configuration';
2
- import { SelectedFacet, SelectedFacetsComponentModel } from '@models';
3
- import { BaseComponent } from '../../base.component';
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
+ }
@@ -1,30 +1,30 @@
1
- import { HawkSearchComponents, SortingComponentConfig } from '@configuration';
2
- import { Sorting, SortingComponentModel } from '@models';
3
- import { BaseComponent } from '../../base.component';
4
- /**
5
- * The Sorting component is used to select the logic for ordering search results.
6
- *
7
- * ## Tag
8
- * The tag for this component is `<hawksearch-sorting>`.
9
- *
10
- * ## Event-Binding Attributes
11
- * | Name | Value |
12
- * | :- | :- |
13
- * | hawksearch-sort | |
14
- *
15
- * When a `select` element with this attribute changes in value, the search will be updated to use that value as the new sort order.
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 ./sorting.component.hbs}
20
- *
21
- * @category Search
22
- */
23
- export declare class SortingComponent extends BaseComponent<SortingComponentConfig, Sorting, SortingComponentModel> {
24
- protected componentName: keyof HawkSearchComponents;
25
- protected defaultHtml: any;
26
- protected bindFromEvent: boolean;
27
- protected renderContent(): boolean;
28
- protected getContentModel(): SortingComponentModel;
29
- protected onRender(): void;
30
- }
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, SortingComponentConfig } from '@configuration';
3
+ import { Sorting, SortingComponentModel } from '@models';
4
+ /**
5
+ * The Sorting component is used to select the logic for ordering search results.
6
+ *
7
+ * ## Tag
8
+ * The tag for this component is `<hawksearch-sorting>`.
9
+ *
10
+ * ## Event-Binding Attributes
11
+ * | Name | Value |
12
+ * | :- | :- |
13
+ * | hawksearch-sort | |
14
+ *
15
+ * When a `select` element with this attribute changes in value, the search will be updated to use that value as the new sort order.
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 ./sorting.component.hbs}
20
+ *
21
+ * @category Search
22
+ */
23
+ export declare class SortingComponent extends BaseComponent<SortingComponentConfig, Sorting, SortingComponentModel> {
24
+ protected componentName: keyof HawkSearchComponents;
25
+ protected defaultHtml: any;
26
+ protected bindFromEvent: boolean;
27
+ protected renderContent(): boolean;
28
+ protected getContentModel(): SortingComponentModel;
29
+ protected onRender(): void;
30
+ }
@@ -1,30 +1,30 @@
1
- import { HawkSearchComponents, TabsComponentConfig } from '@configuration';
2
- import { Facet, TabsComponentModel } from '@models';
3
- import { BaseComponent } from '../../base.component';
4
- /**
5
- * The Tabs component is used to segment search results by item type, often products and content.
6
- *
7
- * ## Tag
8
- * The tag for this component is `<hawksearch-tabs>`.
9
- *
10
- * ## Event-Binding Attributes
11
- * | Name | Value |
12
- * | :- | :- |
13
- * | hawksearch-tab-value | `string` |
14
- *
15
- * When an element with this attribute is clicked, the specified tab facet value will be selected and the search results will update.
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 ./tabs.component.hbs}
20
- *
21
- * @category Search
22
- */
23
- export declare class TabsComponent extends BaseComponent<TabsComponentConfig, Facet, TabsComponentModel> {
24
- protected componentName: keyof HawkSearchComponents;
25
- protected defaultHtml: any;
26
- protected bindFromEvent: boolean;
27
- protected renderContent(): boolean;
28
- protected getContentModel(): TabsComponentModel;
29
- protected onRender(): void;
30
- }
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, TabsComponentConfig } from '@configuration';
3
+ import { Facet, TabsComponentModel } from '@models';
4
+ /**
5
+ * The Tabs component is used to segment search results by item type, often products and content.
6
+ *
7
+ * ## Tag
8
+ * The tag for this component is `<hawksearch-tabs>`.
9
+ *
10
+ * ## Event-Binding Attributes
11
+ * | Name | Value |
12
+ * | :- | :- |
13
+ * | hawksearch-tab-value | `string` |
14
+ *
15
+ * When an element with this attribute is clicked, the specified tab facet value will be selected and the search results will update.
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 ./tabs.component.hbs}
20
+ *
21
+ * @category Search
22
+ */
23
+ export declare class TabsComponent extends BaseComponent<TabsComponentConfig, Facet, TabsComponentModel> {
24
+ protected componentName: keyof HawkSearchComponents;
25
+ protected defaultHtml: any;
26
+ protected bindFromEvent: boolean;
27
+ protected renderContent(): boolean;
28
+ protected getContentModel(): TabsComponentModel;
29
+ protected onRender(): void;
30
+ }
@@ -0,0 +1 @@
1
+ export * from './variant-selector/variant-selector.component';
@@ -0,0 +1,23 @@
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, VariantSelectorComponentConfig } from '@configuration';
3
+ import { VariantSelectorComponentModel, Variants } from '@models';
4
+ /**
5
+ * The Variant Selector component is used to select a single variant within an item.
6
+ *
7
+ * ## Tag
8
+ * The tag for this component is `<hawksearch-variant-selector>`.
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 ./variant-selector.component.hbs}
13
+ *
14
+ * @category Variants
15
+ */
16
+ export declare class VariantSelectorComponent extends BaseComponent<VariantSelectorComponentConfig, Variants, VariantSelectorComponentModel> {
17
+ protected componentName: keyof HawkSearchComponents;
18
+ protected defaultHtml: any;
19
+ protected bindFromEvent: boolean;
20
+ protected renderContent(): boolean;
21
+ protected getContentModel(): VariantSelectorComponentModel;
22
+ protected onRender(): void;
23
+ }