@bridgeline-digital/hawksearch-handlebars-ui 2.0.0-beta.3 → 2.0.0-beta.6
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/{types/components → components}/base.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-types/base-content.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-types/custom-content/custom-content.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-types/featured-items-content/featured-items-content.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-types/image-content/image-content.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-types/index.d.ts +0 -0
- package/dist/{types/components → components}/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +2 -1
- package/dist/{types/components → components}/content/content-zone/content-zone.component.d.ts +2 -1
- package/dist/{types/components → components}/content/index.d.ts +0 -0
- package/dist/{types/components → components}/general/date-picker/date-picker.component.d.ts +2 -1
- package/dist/{types/components → components}/general/icon/icon.component.d.ts +2 -1
- package/dist/{types/components → components}/general/index.d.ts +0 -0
- package/dist/{types/components → components}/general/range-slider/range-slider.component.d.ts +2 -1
- package/dist/{types/components → components}/general/tooltip/tooltip.component.d.ts +2 -1
- package/dist/components/index.d.ts +247 -0
- package/dist/{types/components → components}/landing-pages/index.d.ts +0 -0
- package/dist/{types/components → components}/landing-pages/landing-page/landing-page.component.d.ts +2 -1
- package/dist/{types/components → components}/recommendations/index.d.ts +0 -0
- package/dist/{types/components → components}/recommendations/recommendations/recommendations.component.d.ts +2 -1
- package/dist/{types/components → components}/recommendations/recommendations-item/recommendations-item.component.d.ts +2 -1
- package/dist/{types/components → components}/search/autocomplete/autocomplete.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/base-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/color-facet/color-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/date-range-facet/date-range-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/index.d.ts +0 -0
- package/dist/{types/components → components}/search/facet-types/linked-list-facet/link-list-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/search-within-facet/search-within-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-types/size-facet/size-facet.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facet-wrapper/facet-wrapper.component.d.ts +2 -1
- package/dist/{types/components → components}/search/facets-list/facets-list.component.d.ts +2 -1
- package/dist/{types/components → components}/search/index.d.ts +0 -0
- package/dist/{types/components → components}/search/modified-query/modified-query.component.d.ts +2 -1
- package/dist/{types/components → components}/search/page-size/page-size.component.d.ts +2 -1
- package/dist/{types/components → components}/search/pagination/pagination.component.d.ts +2 -1
- package/dist/{types/components → components}/search/query-suggestions/query-suggestions.component.d.ts +2 -1
- package/dist/{types/components → components}/search/search-field/search-field.component.d.ts +2 -1
- package/dist/{types/components → components}/search/search-results/search-results.component.d.ts +2 -1
- package/dist/{types/components → components}/search/search-results-item/search-results-item.component.d.ts +2 -1
- package/dist/{types/components → components}/search/search-results-list/search-results-list.component.d.ts +2 -1
- package/dist/{types/components → components}/search/selected-facets/selected-facets.component.d.ts +2 -1
- package/dist/{types/components → components}/search/sorting/sorting.component.d.ts +2 -1
- package/dist/{types/components → components}/search/tabs/tabs.component.d.ts +2 -1
- package/dist/{types/models/global.models.d.ts → configuration/configuration.models.d.ts} +174 -1
- package/dist/configuration/index.d.ts +4 -0
- package/dist/helpers/helpers.d.ts +182 -0
- package/dist/helpers/index.d.ts +4 -0
- package/dist/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/index.js +3 -0
- package/dist/{hawksearch-handlebars-ui.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
- package/dist/index.js.map +1 -0
- package/dist/{types/models → models}/autocomplete.models.d.ts +30 -0
- package/dist/{types/models → models}/component.models.d.ts +144 -0
- package/dist/{types/models → models}/content.models.d.ts +30 -0
- package/dist/{types/models → models}/index.d.ts +0 -1
- package/dist/{types/models → models}/raw/index.d.ts +0 -0
- package/dist/{types/models → models}/raw/raw-autocomplete.models.d.ts +0 -0
- package/dist/{types/models → models}/raw/raw-recommendation.models.d.ts +0 -0
- package/dist/{types/models → models}/raw/raw-search.models.d.ts +0 -0
- package/dist/{types/models → models}/recommendation.models.d.ts +12 -0
- package/dist/{types/models → models}/search.models.d.ts +78 -0
- package/dist/{types/models → models}/tracking.models.d.ts +12 -0
- package/dist/{types/services → services}/autocomplete.service.d.ts +0 -0
- package/dist/{types/services → services}/base.service.d.ts +1 -1
- package/dist/{types/services → services}/index.d.ts +0 -0
- package/dist/{types/services → services}/recommendations.service.d.ts +0 -0
- package/dist/{types/services → services}/search.service.d.ts +0 -0
- package/dist/{types/services → services}/tracking.service.d.ts +0 -0
- package/dist/{hawksearch-handlebars-ui.aa9202d77d6b6a9dfb89f5bfe5873220.css → styles.aa9202d77d6b6a9dfb89f5bfe5873220.css} +0 -0
- package/dist/{types/helpers → utilities}/dates.d.ts +0 -0
- package/dist/{types/helpers → utilities}/formatters.d.ts +0 -0
- package/dist/{types/helpers → utilities}/index.d.ts +0 -0
- package/docs/assets/highlight.css +127 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1280 -0
- package/docs/classes/Components.AutocompleteComponent.html +334 -0
- package/docs/classes/Components.BaseComponent.html +231 -0
- package/docs/classes/Components.BaseContentComponent.html +221 -0
- package/docs/classes/Components.BaseFacetComponent.html +292 -0
- package/docs/classes/Components.CheckboxListFacetComponent.html +272 -0
- package/docs/classes/Components.ColorFacetComponent.html +253 -0
- package/docs/classes/Components.ContentZoneComponent.html +296 -0
- package/docs/classes/Components.CustomContentComponent.html +242 -0
- package/docs/classes/Components.DatePickerComponent.html +468 -0
- package/docs/classes/Components.DateRangeFacetComponent.html +269 -0
- package/docs/classes/Components.FacetWrapperComponent.html +291 -0
- package/docs/classes/Components.FacetsListComponent.html +259 -0
- package/docs/classes/Components.FeaturedItemsContentComponent.html +242 -0
- package/docs/classes/Components.FeaturedItemsContentItemComponent.html +280 -0
- package/docs/classes/Components.IconComponent.html +289 -0
- package/docs/classes/Components.ImageContentComponent.html +242 -0
- package/docs/classes/Components.LandingPageComponent.html +283 -0
- package/docs/classes/Components.LinkListFacetComponent.html +253 -0
- package/docs/classes/Components.ModifiedQueryComponent.html +260 -0
- package/docs/classes/Components.NumericRangeFacetComponent.html +269 -0
- package/docs/classes/Components.PageSizeComponent.html +260 -0
- package/docs/classes/Components.PaginationComponent.html +290 -0
- package/docs/classes/Components.PopularQueriesContentComponent.html +242 -0
- package/docs/classes/Components.QuerySuggestionsComponent.html +276 -0
- package/docs/classes/Components.RangeSliderComponent.html +320 -0
- package/docs/classes/Components.RangeSliderFacetComponent.html +269 -0
- package/docs/classes/Components.RecentSearchesFacetComponent.html +265 -0
- package/docs/classes/Components.RecommendationsComponent.html +355 -0
- package/docs/classes/Components.RecommendationsItemComponent.html +273 -0
- package/docs/classes/Components.RelatedSearchesFacetComponent.html +265 -0
- package/docs/classes/Components.SearchFieldComponent.html +277 -0
- package/docs/classes/Components.SearchResultsComponent.html +280 -0
- package/docs/classes/Components.SearchResultsItemComponent.html +273 -0
- package/docs/classes/Components.SearchResultsListComponent.html +242 -0
- package/docs/classes/Components.SearchWithinFacetComponent.html +265 -0
- package/docs/classes/Components.SelectedFacetsComponent.html +263 -0
- package/docs/classes/Components.SizeFacetComponent.html +253 -0
- package/docs/classes/Components.SortingComponent.html +259 -0
- package/docs/classes/Components.TabsComponent.html +259 -0
- package/docs/classes/Components.TooltipComponent.html +263 -0
- package/docs/classes/Services.AutocompleteService.html +273 -0
- package/docs/classes/Services.RecommendationsService.html +273 -0
- package/docs/classes/Services.SearchService.html +620 -0
- package/docs/classes/Services.TrackingService.html +445 -0
- package/docs/enums/Models.AutocompleteItemType.html +78 -0
- package/docs/enums/Models.EventType.html +113 -0
- package/docs/enums/Models.PageType.html +83 -0
- package/docs/enums/Models.SearchType.html +68 -0
- package/docs/functions/Helpers.add.html +89 -0
- package/docs/functions/Helpers.and.html +85 -0
- package/docs/functions/Helpers.attribute.html +89 -0
- package/docs/functions/Helpers.concat.html +85 -0
- package/docs/functions/Helpers.currency.html +87 -0
- package/docs/functions/Helpers.eq.html +83 -0
- package/docs/functions/Helpers.exclude.html +85 -0
- package/docs/functions/Helpers.gt.html +83 -0
- package/docs/functions/Helpers.gte.html +83 -0
- package/docs/functions/Helpers.html.html +79 -0
- package/docs/functions/Helpers.ifElse.html +93 -0
- package/docs/functions/Helpers.lt.html +83 -0
- package/docs/functions/Helpers.lte.html +83 -0
- package/docs/functions/Helpers.number.html +87 -0
- package/docs/functions/Helpers.or.html +79 -0
- package/docs/functions/Helpers.string.html +83 -0
- package/docs/functions/Helpers.subtract.html +83 -0
- package/docs/index.html +142 -0
- package/docs/interfaces/Configuration.AutocompleteComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.BaseComponentConfig.html +120 -0
- package/docs/interfaces/Configuration.Breakpoints.html +87 -0
- package/docs/interfaces/Configuration.CheckboxListFacetComponentConfig.html +106 -0
- package/docs/interfaces/Configuration.ColorFacetComponentConfig.html +102 -0
- package/docs/interfaces/Configuration.ContentZoneComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.CustomContentComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.DatePickerComponentConfig.html +104 -0
- package/docs/interfaces/Configuration.DateRangeFacetComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.FacetWrapperComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.FacetsListComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.FeaturedItemsContentComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.FeaturedItemsContentItemComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.HawkSearchComponents.html +247 -0
- package/docs/interfaces/Configuration.HawkSearchConfig.html +388 -0
- package/docs/interfaces/Configuration.HawkSearchGlobal.html +98 -0
- package/docs/interfaces/Configuration.HawkSearchState.html +72 -0
- package/docs/interfaces/Configuration.IconComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.ImageContentComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.LandingPageComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.LinkListFacetComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.ModifiedQueryComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.NumericRangeFacetComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.PageSizeComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.PaginationComponentConfig.html +104 -0
- package/docs/interfaces/Configuration.PopularQueriesContentComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.QuerySuggestionsComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.RangeSliderComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.RangeSliderFacetComponentConfig.html +98 -0
- package/docs/interfaces/Configuration.RecentSearchesFacetComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.RecommendationsComponentConfig.html +131 -0
- package/docs/interfaces/Configuration.RecommendationsItemComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.RelatedSearchesFacetComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.SearchFieldComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.SearchResultsComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.SearchResultsItemComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.SearchResultsListComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.SearchWithinFacetComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.SelectedFacetsComponentConfig.html +96 -0
- package/docs/interfaces/Configuration.SizeFacetComponentConfig.html +102 -0
- package/docs/interfaces/Configuration.SortingComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.TabsComponentConfig.html +86 -0
- package/docs/interfaces/Configuration.TooltipComponentConfig.html +86 -0
- package/docs/interfaces/Models.AutocompleteCategories.html +72 -0
- package/docs/interfaces/Models.AutocompleteCategory.html +82 -0
- package/docs/interfaces/Models.AutocompleteComponentModel.html +112 -0
- package/docs/interfaces/Models.AutocompleteContent.html +77 -0
- package/docs/interfaces/Models.AutocompleteContentResult.html +92 -0
- package/docs/interfaces/Models.AutocompleteProductResult.html +102 -0
- package/docs/interfaces/Models.AutocompleteProducts.html +77 -0
- package/docs/interfaces/Models.AutocompleteQueries.html +72 -0
- package/docs/interfaces/Models.AutocompleteQuery.html +72 -0
- package/docs/interfaces/Models.AutocompleteRequest.html +67 -0
- package/docs/interfaces/Models.AutocompleteResponse.html +99 -0
- package/docs/interfaces/Models.BaseComponentModel.html +188 -0
- package/docs/interfaces/Models.CalendarDay.html +87 -0
- package/docs/interfaces/Models.CheckboxListFacetComponentModel.html +107 -0
- package/docs/interfaces/Models.CheckboxListFacetValue.html +133 -0
- package/docs/interfaces/Models.ColorFacetComponentModel.html +93 -0
- package/docs/interfaces/Models.ColorFacetValue.html +123 -0
- package/docs/interfaces/Models.ContentConfiguration.html +77 -0
- package/docs/interfaces/Models.ContentType.html +93 -0
- package/docs/interfaces/Models.ContentZone.html +72 -0
- package/docs/interfaces/Models.ContentZoneComponentModel.html +76 -0
- package/docs/interfaces/Models.ContentZoneItem.html +77 -0
- package/docs/interfaces/Models.ContentZones.html +154 -0
- package/docs/interfaces/Models.CustomContent.html +101 -0
- package/docs/interfaces/Models.CustomContentComponentModel.html +101 -0
- package/docs/interfaces/Models.CustomWidgetContent.html +99 -0
- package/docs/interfaces/Models.DateFacetRange.html +94 -0
- package/docs/interfaces/Models.DatePickerComponentModel.html +124 -0
- package/docs/interfaces/Models.DateRangeFacetComponentModel.html +96 -0
- package/docs/interfaces/Models.Facet.html +139 -0
- package/docs/interfaces/Models.FacetScrolling.html +72 -0
- package/docs/interfaces/Models.FacetSearch.html +67 -0
- package/docs/interfaces/Models.FacetTruncation.html +67 -0
- package/docs/interfaces/Models.FacetValue.html +112 -0
- package/docs/interfaces/Models.FacetValueColor.html +77 -0
- package/docs/interfaces/Models.FacetWrapperComponentModel.html +165 -0
- package/docs/interfaces/Models.FacetsListComponentModel.html +84 -0
- package/docs/interfaces/Models.FeaturedItemsContent.html +101 -0
- package/docs/interfaces/Models.FeaturedItemsContentComponentModel.html +101 -0
- package/docs/interfaces/Models.FeaturedItemsContentItemComponentModel.html +147 -0
- package/docs/interfaces/Models.IconComponentModel.html +84 -0
- package/docs/interfaces/Models.ImageContent.html +126 -0
- package/docs/interfaces/Models.ImageContentComponentModel.html +127 -0
- package/docs/interfaces/Models.LandingPageComponentModel.html +160 -0
- package/docs/interfaces/Models.LinkListFacetComponentModel.html +99 -0
- package/docs/interfaces/Models.LinkListFacetValue.html +123 -0
- package/docs/interfaces/Models.ModifiedQueryComponentModel.html +86 -0
- package/docs/interfaces/Models.ModifiedQueryData.html +77 -0
- package/docs/interfaces/Models.NumericFacetRange.html +94 -0
- package/docs/interfaces/Models.NumericRangeFacetComponentModel.html +96 -0
- package/docs/interfaces/Models.PageSizeComponentModel.html +69 -0
- package/docs/interfaces/Models.Pagination.html +102 -0
- package/docs/interfaces/Models.PaginationComponentModel.html +147 -0
- package/docs/interfaces/Models.PaginationOption.html +82 -0
- package/docs/interfaces/Models.PopularQueriesContent.html +101 -0
- package/docs/interfaces/Models.PopularQueriesContentComponentModel.html +101 -0
- package/docs/interfaces/Models.PopularQueriesContentItem.html +77 -0
- package/docs/interfaces/Models.QuerySuggestionsComponentModel.html +69 -0
- package/docs/interfaces/Models.QuerySuggestionsData.html +72 -0
- package/docs/interfaces/Models.RangeSliderComponentModel.html +86 -0
- package/docs/interfaces/Models.RangeSliderEventData.html +72 -0
- package/docs/interfaces/Models.RangeSliderFacetComponentModel.html +106 -0
- package/docs/interfaces/Models.RecentSearchesFacetComponentModel.html +69 -0
- package/docs/interfaces/Models.RecommendationsComponentModel.html +137 -0
- package/docs/interfaces/Models.RecommendationsItem.html +124 -0
- package/docs/interfaces/Models.RecommendationsItemComponentModel.html +147 -0
- package/docs/interfaces/Models.RecommendationsRequest.html +77 -0
- package/docs/interfaces/Models.RecommendationsResponse.html +72 -0
- package/docs/interfaces/Models.RecommendationsWidget.html +89 -0
- package/docs/interfaces/Models.Redirect.html +72 -0
- package/docs/interfaces/Models.RelatedSearchesFacetComponentModel.html +69 -0
- package/docs/interfaces/Models.SearchFieldComponentModel.html +79 -0
- package/docs/interfaces/Models.SearchRequest.html +107 -0
- package/docs/interfaces/Models.SearchResponse.html +140 -0
- package/docs/interfaces/Models.SearchResultsComponentModel.html +155 -0
- package/docs/interfaces/Models.SearchResultsItem.html +124 -0
- package/docs/interfaces/Models.SearchResultsItemComponentModel.html +149 -0
- package/docs/interfaces/Models.SearchResultsListComponentModel.html +69 -0
- package/docs/interfaces/Models.SearchWithinFacetComponentModel.html +79 -0
- package/docs/interfaces/Models.SelectedFacet.html +82 -0
- package/docs/interfaces/Models.SelectedFacetValue.html +77 -0
- package/docs/interfaces/Models.SelectedFacetsComponentModel.html +79 -0
- package/docs/interfaces/Models.SeoConfiguration.html +87 -0
- package/docs/interfaces/Models.SizeFacetComponentModel.html +93 -0
- package/docs/interfaces/Models.SizeFacetValue.html +123 -0
- package/docs/interfaces/Models.Sorting.html +72 -0
- package/docs/interfaces/Models.SortingComponentModel.html +69 -0
- package/docs/interfaces/Models.SortingOption.html +82 -0
- package/docs/interfaces/Models.TabsComponentModel.html +74 -0
- package/docs/interfaces/Models.TooltipComponentModel.html +69 -0
- package/docs/modules/Components.html +521 -0
- package/docs/modules/Configuration.html +144 -0
- package/docs/modules/Helpers.html +87 -0
- package/docs/modules/Models.html +270 -0
- package/docs/modules/Services.html +72 -0
- package/docs/modules.html +51 -0
- package/docs/types/Configuration.DisplayType.html +91 -0
- package/docs/types/Models.FacetState.html +161 -0
- package/docs/types/Models.FacetType.html +148 -0
- package/docs/types/Models.FacetValueState.html +153 -0
- package/docs/types/Models.IconName.html +148 -0
- package/docs/types/Models.SearchResultsItemType.html +148 -0
- package/docs/types/Models.SearchResultsMode.html +148 -0
- package/docs/types/Models.SelectedFacets.html +148 -0
- package/docs/variables/Services.autocompleteService-1.html +55 -0
- package/docs/variables/Services.recommendationsService-1.html +55 -0
- package/docs/variables/Services.searchService-1.html +55 -0
- package/docs/variables/Services.trackingService-1.html +55 -0
- package/package.json +6 -3
- package/readme.md +37 -37
- package/dist/hawksearch-handlebars-ui.js +0 -3
- package/dist/hawksearch-handlebars-ui.js.map +0 -1
- package/dist/types/components/index.d.ts +0 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseComponentConfig,
|
|
1
|
+
import { BaseComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { BaseComponentModel } from '@models';
|
|
2
3
|
/**
|
|
3
4
|
* @typeParam TConfig Component configuration
|
|
4
5
|
* @typeParam TData Component data
|
package/dist/{types/components → components}/content/content-types/base-content.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseComponentConfig
|
|
1
|
+
import { BaseComponentConfig } from '@configuration';
|
|
2
|
+
import { BaseComponentModel, ContentType } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* @category Content
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomContentComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { CustomContent, CustomContentComponentModel } from '@models';
|
|
2
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Custom Content component renders HTML defined in Hawksearch.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FeaturedItemsContentComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { FeaturedItemsContent, FeaturedItemsContentComponentModel } from '@models';
|
|
2
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
3
4
|
/**
|
|
4
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.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FeaturedItemsContentItemComponentConfig,
|
|
1
|
+
import { FeaturedItemsContentItemComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { FeaturedItemsContentItemComponentModel, SearchResultsItem } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Featured Items Content Item component displays information for an individual product or page.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, ImageContentComponentConfig } from '@configuration';
|
|
2
|
+
import { ImageContent, ImageContentComponentModel } from '@models';
|
|
2
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Image Content component displays an image defined in Hawksearch.
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, PopularQueriesContentComponentConfig } from '@configuration';
|
|
2
|
+
import { PopularQueriesContent, PopularQueriesContentComponentModel } from '@models';
|
|
2
3
|
import { BaseContentComponent } from '../base-content.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Popular Queries Content component renders a tag cloud of popular queries relating to the current query. Each link is weighted according to its search frequency, with the most popular queries displayed in the largest font size.
|
package/dist/{types/components → components}/content/content-zone/content-zone.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ContentZoneComponentConfig,
|
|
1
|
+
import { ContentZoneComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { ContentZoneComponentModel, SearchResponse } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Content Zone component renders a list of content items or Spotlight products as defined in the Merchandising section of Hawksearch.
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DatePickerComponentConfig,
|
|
1
|
+
import { DatePickerComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { DatePickerComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Date Picker component provides an intuitive interface that allows the user to select a range in ISO format. This component is currently only used within the {@link Components.DateRangeFacetComponent | Date Range Facet Component}.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, IconComponentConfig
|
|
1
|
+
import { HawkSearchComponents, IconComponentConfig } from '@configuration';
|
|
2
|
+
import { IconComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Icon component renders an SVG image inline with text content.
|
|
File without changes
|
package/dist/{types/components → components}/general/range-slider/range-slider.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, RangeSliderComponentConfig
|
|
1
|
+
import { HawkSearchComponents, RangeSliderComponentConfig } from '@configuration';
|
|
2
|
+
import { RangeSliderComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Range Slider component provides a draggable interface that allows the user to select a range between 0-100. This component is currently only used within the {@link Components.RangeSliderFacetComponent | Range Slider Facet Component}.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, TooltipComponentConfig
|
|
1
|
+
import { HawkSearchComponents, TooltipComponentConfig } from '@configuration';
|
|
2
|
+
import { TooltipComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Tooltip component is used to display a brief explanation or contextual information when the user hovers over an element.
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ## Customizing Markup
|
|
3
|
+
*
|
|
4
|
+
* This library was designed to be flexible and allow total customization of the markup used by all components.
|
|
5
|
+
*
|
|
6
|
+
* ### Overriding Templates
|
|
7
|
+
*
|
|
8
|
+
* There are three ways to replace the Handlebars template used by a component:
|
|
9
|
+
*
|
|
10
|
+
* - Pass a template HTML string containing a Handlebars template.
|
|
11
|
+
* - Pass the ID of a template element containing a Handlebars template.
|
|
12
|
+
* - Define the new Handlebars template as the child content of a control
|
|
13
|
+
*
|
|
14
|
+
* #### Passing an HTML string
|
|
15
|
+
*
|
|
16
|
+
* In your HTML file, define the template content directly in the configuration options:
|
|
17
|
+
*
|
|
18
|
+
* ```html
|
|
19
|
+
* <!DOCTYPE html>
|
|
20
|
+
* <html>
|
|
21
|
+
* <head>
|
|
22
|
+
* <meta charset="utf-8" />
|
|
23
|
+
* <title>Hawksearch Handlebars UI</title>
|
|
24
|
+
* <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
25
|
+
* <script type="text/javascript">
|
|
26
|
+
* var Hawksearch = Hawksearch || {};
|
|
27
|
+
*
|
|
28
|
+
* Hawksearch.config = {
|
|
29
|
+
* clientId: "YOUR_CLIENTID_HERE",
|
|
30
|
+
* components: {
|
|
31
|
+
* pageSize: {
|
|
32
|
+
* template: `
|
|
33
|
+
* <div class='page-size'>
|
|
34
|
+
* <select hawksearch-page-size>
|
|
35
|
+
* {{#each options}}
|
|
36
|
+
* <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
|
|
37
|
+
* {{/each}}
|
|
38
|
+
* </select>
|
|
39
|
+
* </div>`
|
|
40
|
+
* }
|
|
41
|
+
* }
|
|
42
|
+
* };
|
|
43
|
+
* </script>
|
|
44
|
+
* <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
|
|
45
|
+
* </head>
|
|
46
|
+
* <body>
|
|
47
|
+
* <h1>Hawksearch Handlebars UI</h1>
|
|
48
|
+
* <hawksearch-search></hawksearch-search>
|
|
49
|
+
* <hawksearch-results></hawksearch-results>
|
|
50
|
+
* </body>
|
|
51
|
+
* </html>
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* #### Creating a template element
|
|
55
|
+
*
|
|
56
|
+
* In your HTML file, add the custom markup to a `template` element and pass the ID in the configuration options:
|
|
57
|
+
*
|
|
58
|
+
* ```html
|
|
59
|
+
* <!DOCTYPE html>
|
|
60
|
+
* <html>
|
|
61
|
+
* <head>
|
|
62
|
+
* <meta charset="utf-8" />
|
|
63
|
+
* <title>Hawksearch Handlebars UI</title>
|
|
64
|
+
* <meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
65
|
+
* <script type="text/javascript">
|
|
66
|
+
* var Hawksearch = Hawksearch || {};
|
|
67
|
+
*
|
|
68
|
+
* Hawksearch.config = {
|
|
69
|
+
* clientId: "f51060e1c38446f0bacdf283390c37e8",
|
|
70
|
+
* components: {
|
|
71
|
+
* pageSize: {
|
|
72
|
+
* template: 'page-size-template'
|
|
73
|
+
* }
|
|
74
|
+
* }
|
|
75
|
+
* };
|
|
76
|
+
* </script>
|
|
77
|
+
* <script src="node_modules/@bridgeline-digital/hawksearch-handlebars-ui/dist/handlebars-ui.js" defer ></script>
|
|
78
|
+
* </head>
|
|
79
|
+
* <body>
|
|
80
|
+
* <h1>Hawksearch Handlebars UI</h1>
|
|
81
|
+
* <hawksearch-search></hawksearch-search>
|
|
82
|
+
* <hawksearch-results></hawksearch-results>
|
|
83
|
+
* <template id="page-size-template">
|
|
84
|
+
* <div class='page-size'>
|
|
85
|
+
* <select hawksearch-page-size>
|
|
86
|
+
* {{#each options}}
|
|
87
|
+
* <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
|
|
88
|
+
* {{/each}}
|
|
89
|
+
* </select>
|
|
90
|
+
* </div>
|
|
91
|
+
* </template>
|
|
92
|
+
* </body>
|
|
93
|
+
* </html>
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
* *Note: This approach tends to be easier to manage than the previous option as it is more compatible with popular HTML editors and templates can potentially be loaded from separate files using Server-side Includes (SSI).*
|
|
97
|
+
*
|
|
98
|
+
* #### Setting control content
|
|
99
|
+
*
|
|
100
|
+
* In your HTML file, add the custom markup as the content of a component element:
|
|
101
|
+
*
|
|
102
|
+
* ```html
|
|
103
|
+
* <hawksearch-page-size>
|
|
104
|
+
* <div class='page-size'>
|
|
105
|
+
* <select hawksearch-page-size>
|
|
106
|
+
* {{#each options}}
|
|
107
|
+
* <option value='{{pageSize}}' {{attribute 'selected' selected}}>{{title}}</option>
|
|
108
|
+
* {{/each}}
|
|
109
|
+
* </select>
|
|
110
|
+
* </div>
|
|
111
|
+
* </hawksearch-page-size>
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* *Note: If you choose this approach to customization and need to define a template for a nested element, be aware that by default, Handlebars will try to apply the model from the top-level component to all nested components, which will not work. To guard against this behavior, use the `exclude` helper documented in {@link Helpers.exclude}.*
|
|
115
|
+
*
|
|
116
|
+
* ## Customizing CSS
|
|
117
|
+
* By default, a neutral interface is rendered to get your search instance up and running quickly. However, this library was designed to be customizable and allow developers to use both custom markup and custom CSS.
|
|
118
|
+
*
|
|
119
|
+
* For developers who only wish to tweak the default UI rather than create something from scratch, there are some variables and utility methods defined in the default CSS that are available for use.
|
|
120
|
+
*
|
|
121
|
+
* ### Variables
|
|
122
|
+
* Although all components in this library utilize the Shadow DOM, CSS variables are able to cross this boundary in a way that normal CSS rules are not. The following variables can be customized in the host DOM to easily customize some of the default styles:
|
|
123
|
+
*
|
|
124
|
+
* | Variable | Default Value |
|
|
125
|
+
* | :- | :- |
|
|
126
|
+
* | --hawksearch-container-background--alternate | `var(--color-secondary-light)` |
|
|
127
|
+
* | --hawksearch-container-border | `solid 1px var(--color-secondary)` |
|
|
128
|
+
* | --hawksearch-default-line-height | `1.25` |
|
|
129
|
+
* | --hawksearch-default-font-color | `#333333` |
|
|
130
|
+
* | --hawksearch-default-font-color--inverse | `#ffffff` |
|
|
131
|
+
* | --hawksearch-default-font-family | `Arial, sans-serif` |
|
|
132
|
+
* | --hawksearch-default-font-size | `16px` |
|
|
133
|
+
* | --hawksearch-button-background | `var(--color-accent)` |
|
|
134
|
+
* | --hawksearch-button-border-radius | `5px` |
|
|
135
|
+
* | --hawksearch-button-font-color | `#ffffff` |
|
|
136
|
+
* | --hawksearch-form-element-background | `var(--color-background)` |
|
|
137
|
+
* | --hawksearch-form-element-border | `solid 1px var(--color-secondary)` |
|
|
138
|
+
* | --hawksearch-form-element-border--focus | `solid 1px var(--color-accent)` |
|
|
139
|
+
* | --hawksearch-form-element-border-radius | `0` |
|
|
140
|
+
* | --hawksearch-form-element-placeholder-color | `var(--color-secondary-dark)` |
|
|
141
|
+
* | --hawksearch-margin | `32px` |
|
|
142
|
+
* | --hawksearch-margin-sm | `calc(var(--margin) / 2)` |
|
|
143
|
+
* | --hawksearch-padding | `24px` |
|
|
144
|
+
* | --hawksearch-padding-xs | `calc(var(--padding) / 4)` |
|
|
145
|
+
* | --hawksearch-padding-sm | `calc(var(--padding) / 2)` |
|
|
146
|
+
* | --hawksearch-secondary-font-color | `var(--color-secondary-dark)` |
|
|
147
|
+
*
|
|
148
|
+
* *Note: Internally, all variables omit the hawksearch- prefix. This prefix is used only to override the default values.*
|
|
149
|
+
*
|
|
150
|
+
* ### Breakpoints
|
|
151
|
+
*
|
|
152
|
+
* This library uses responsive design with the following breakpoints defined:
|
|
153
|
+
*
|
|
154
|
+
* | Name | Suffix | Minimum Width |
|
|
155
|
+
* | :- | :- | :- |
|
|
156
|
+
* | | | `0px` |
|
|
157
|
+
* | small | `-sm` | `740px` |
|
|
158
|
+
* | medium | `-md` | `990px` |
|
|
159
|
+
* | large | `-lg` | `1260px` |
|
|
160
|
+
* | extra-large | `-xl` | `1800px` |
|
|
161
|
+
*
|
|
162
|
+
* ### Grid System
|
|
163
|
+
*
|
|
164
|
+
* This library uses a 12-column, responsive grid system. To use this system, all columns must have a `column` class and be the direct children of an element with a `row` class. The number of columns each column elements spans can be controlled with `column--XX` classes.
|
|
165
|
+
*
|
|
166
|
+
* For example, the following will render two equal columns that are stacked until the browser window reaches the `Medium` breakpoint:
|
|
167
|
+
*
|
|
168
|
+
* ```html
|
|
169
|
+
* <div class="row">
|
|
170
|
+
* <div class="column column--12 column-md--6">Column 1</div>
|
|
171
|
+
* <div class="column column--12 column-md--6">Column 2</div>
|
|
172
|
+
* </div>
|
|
173
|
+
* ```
|
|
174
|
+
*
|
|
175
|
+
* #### Row Modifiers
|
|
176
|
+
* The following CSS classes can be added to modify the row display:
|
|
177
|
+
*
|
|
178
|
+
* | CSS Class | Description |
|
|
179
|
+
* | :- | :- |
|
|
180
|
+
* | `row--reverse` | This will cause all columns to be rendered in the reverse order that they are defined |
|
|
181
|
+
* | `row--tight` | This will reduce the space between columns to use `var(--padding-xs)` |
|
|
182
|
+
*
|
|
183
|
+
* #### Column Modifiers
|
|
184
|
+
* The following CSS classes can be added to modify the column display:
|
|
185
|
+
*
|
|
186
|
+
* | CSS Class | Description |
|
|
187
|
+
* | :- | :- |
|
|
188
|
+
* | `column--pull-right` | This will force the column to pull to be aligned to the end of the row |
|
|
189
|
+
*
|
|
190
|
+
* ### Utility Classes
|
|
191
|
+
* There are several basic utility classes available to quickly customize the display of elements.
|
|
192
|
+
*
|
|
193
|
+
* *Note: All utility classes support the suffixes defined in Breakpoints. For example, `display-block` and `display-sm-none` are both valid.*
|
|
194
|
+
*
|
|
195
|
+
* * #### Display
|
|
196
|
+
*
|
|
197
|
+
* | CSS Class | Description |
|
|
198
|
+
* | :- | :- |
|
|
199
|
+
* | display-block | This will display an element |
|
|
200
|
+
* | display-none | This will hide an element |
|
|
201
|
+
*
|
|
202
|
+
* #### Flex Vertical
|
|
203
|
+
*
|
|
204
|
+
* | CSS Class | Description |
|
|
205
|
+
* | :- | :- |
|
|
206
|
+
* | flex-vertical-center | This will vertically center the children of an element |
|
|
207
|
+
*
|
|
208
|
+
* #### Flex Gap
|
|
209
|
+
*
|
|
210
|
+
* | CSS Class | Description |
|
|
211
|
+
* | :- | :- |
|
|
212
|
+
* | flex-gap | This will add equal `var(--padding)` spacing between each child element and allow wrapping onto the next row when necessary |
|
|
213
|
+
* | flex-gap--none | This modifier class eliminates the spacing between each child element |
|
|
214
|
+
* | flex-gap--sm | This modifier class reduces the spacing between each element to `var(--padding-sm)` |
|
|
215
|
+
* | flex-gap--xs | This modifier class reduces the spacing between each element to `var(--padding-xs)` |
|
|
216
|
+
*
|
|
217
|
+
* #### Margin
|
|
218
|
+
*
|
|
219
|
+
* | CSS Class | Description |
|
|
220
|
+
* | :- | :- |
|
|
221
|
+
* | margin | This adds bottom margin of `var(--margin)` |
|
|
222
|
+
* | margin-none | This removes bottom margin |
|
|
223
|
+
* | margin-sm | This adds bottom margin of `var(--margin-sm)` |
|
|
224
|
+
*
|
|
225
|
+
* #### Width
|
|
226
|
+
*
|
|
227
|
+
* | CSS Class | Description |
|
|
228
|
+
* | :- | :- |
|
|
229
|
+
* | width-auto | This allows an elements content to determine its width |
|
|
230
|
+
* | width-full | This forces an element’s width to match its parent element |
|
|
231
|
+
*
|
|
232
|
+
* #### Text Align
|
|
233
|
+
*
|
|
234
|
+
* | CSS Class | Description |
|
|
235
|
+
* | :- | :- |
|
|
236
|
+
* | text-align-left | This aligns descendant content to the left |
|
|
237
|
+
* | text-align-center | This aligns descendant content to the center |
|
|
238
|
+
* | text-align-right | This aligns descendant content to the right |
|
|
239
|
+
*
|
|
240
|
+
* @module Components
|
|
241
|
+
*/
|
|
242
|
+
export * from './base.component';
|
|
243
|
+
export * from './content';
|
|
244
|
+
export * from './general';
|
|
245
|
+
export * from './landing-pages';
|
|
246
|
+
export * from './recommendations';
|
|
247
|
+
export * from './search';
|
|
File without changes
|
package/dist/{types/components → components}/landing-pages/landing-page/landing-page.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, LandingPageComponentConfig
|
|
1
|
+
import { HawkSearchComponents, LandingPageComponentConfig } from '@configuration';
|
|
2
|
+
import { LandingPageComponentModel, SearchResponse } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Landing page component displays either a search results interface to display a subset of products, or a custom layout to display content items.
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, RecommendationsComponentConfig
|
|
1
|
+
import { HawkSearchComponents, RecommendationsComponentConfig } from '@configuration';
|
|
2
|
+
import { RecommendationsComponentModel, RecommendationsWidget } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Recommendations component displays a list of products determined by the rules configured in the HawkSearch admin.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, RecommendationsItemComponentConfig } from '@configuration';
|
|
2
|
+
import { RecommendationsItem, RecommendationsItemComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Recommendations Item component displays information for an individual product or page.
|
package/dist/{types/components → components}/search/autocomplete/autocomplete.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AutocompleteComponentConfig,
|
|
1
|
+
import { AutocompleteComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { AutocompleteComponentModel, AutocompleteResponse } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Autocomplete component displays a preview of search results after a user begins to type a query in the {@link Components.SearchFieldComponent}.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseComponentConfig
|
|
1
|
+
import { BaseComponentConfig } from '@configuration';
|
|
2
|
+
import { BaseComponentModel, Facet, FacetState } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Base Facet component is inherited by all facet type copmonents.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CheckboxListFacetComponentConfig,
|
|
1
|
+
import { CheckboxListFacetComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { CheckboxListFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Checkbox List Facet component renders a checkbox for each facet and may be nested depending on the configuration in the Hawksearch admin.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ColorFacetComponentConfig,
|
|
1
|
+
import { ColorFacetComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { ColorFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Color Facet component renders a box with color preview for each value.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { DateRangeFacetComponentConfig,
|
|
1
|
+
import { DateRangeFacetComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { DateRangeFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Date Range Facet component renders number input elements for minimum and maximum value.
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, LinkListFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, LinkListFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { LinkListFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Linked List Facet component renders a hyperlink for each value.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, NumericRangeFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, NumericRangeFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { NumericRangeFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Numeric Range Facet component renders number input elements for minimum and maximum value.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, RangeSliderFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, RangeSliderFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { RangeSliderFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Range Slider Facet component renders a {@link Components.RangeSliderComponent | Range Slider component} and number input elements for minimum and maximum value.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, RecentSearchesFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, RecentSearchesFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { RecentSearchesFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Recent Searches Facet component displays a list of the five most recent searches performed by a user.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, RelatedSearchesFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, RelatedSearchesFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { RelatedSearchesFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Related Searches Facet component displays a list of queries related to the current query.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, SearchWithinFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, SearchWithinFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { SearchWithinFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Search Within Facet component allows the user to enter keywords to further refine the list of search results.
|
package/dist/{types/components → components}/search/facet-types/size-facet/size-facet.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, SizeFacetComponentConfig
|
|
1
|
+
import { HawkSearchComponents, SizeFacetComponentConfig } from '@configuration';
|
|
2
|
+
import { SizeFacetComponentModel } from '@models';
|
|
2
3
|
import { BaseFacetComponent } from '../base-facet.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Size Facet component displays a list of product sizes in a grid format.
|
package/dist/{types/components → components}/search/facet-wrapper/facet-wrapper.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FacetWrapperComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { Facet, FacetState, FacetWrapperComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Facet Wrapper component adds functionality common to all facet types such as expand/collapse, tooltip, and value search.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FacetsListComponentConfig, HawkSearchComponents } from '@configuration';
|
|
2
|
+
import { Facet, FacetsListComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Facets List component displays a list of available facets with a toggle to expand/collapse on mobile devices.
|
|
File without changes
|
package/dist/{types/components → components}/search/modified-query/modified-query.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, ModifiedQueryComponentConfig
|
|
1
|
+
import { HawkSearchComponents, ModifiedQueryComponentConfig } from '@configuration';
|
|
2
|
+
import { ModifiedQueryComponentModel, ModifiedQueryData } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Modified Query component is rendered when the spellchecker detects a spelling error and searches for the correctly-spelled query instead.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, PageSizeComponentConfig
|
|
1
|
+
import { HawkSearchComponents, PageSizeComponentConfig } from '@configuration';
|
|
2
|
+
import { PageSizeComponentModel, PaginationOption } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Page Size component is used to modify the number of search results displayed on each page.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, PaginationComponentConfig } from '@configuration';
|
|
2
|
+
import { Pagination, PaginationComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Pagination component is used to navigate between different pages of a search results set.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, QuerySuggestionsComponentConfig
|
|
1
|
+
import { HawkSearchComponents, QuerySuggestionsComponentConfig } from '@configuration';
|
|
2
|
+
import { QuerySuggestionsComponentModel, QuerySuggestionsData } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Query Suggestions component displays a list of possible queries that the search engine detects the user may be looking for.
|
package/dist/{types/components → components}/search/search-field/search-field.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents, SearchFieldComponentConfig
|
|
1
|
+
import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
|
|
2
|
+
import { SearchFieldComponentModel, SearchResponse } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Search component contains a text input element which triggers the {@link Components.AutocompleteComponent | Autocomplete component} as the user types and executes a new search when the user hits the `enter` key.
|
package/dist/{types/components → components}/search/search-results/search-results.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, SearchResultsComponentConfig } from '@configuration';
|
|
2
|
+
import { SearchResponse, SearchResultsComponentModel, SearchResultsMode } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Search Results component encapsulates all components relating to search-results.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, SearchResultsItemComponentConfig } from '@configuration';
|
|
2
|
+
import { SearchResultsItem, SearchResultsItemComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Search Results Item component displays information for an individual product or page.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, SearchResultsListComponentConfig } from '@configuration';
|
|
2
|
+
import { SearchResultsItem, SearchResultsListComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Search Results List component is a wrapper around a group of {@link Components.SearchResultsItemComponent | Search Results Item} components.
|
package/dist/{types/components → components}/search/selected-facets/selected-facets.component.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, SelectedFacetsComponentConfig } from '@configuration';
|
|
2
|
+
import { SelectedFacet, SelectedFacetsComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Selected Facets component displays a list of facets that have been selected by the user.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { HawkSearchComponents,
|
|
1
|
+
import { HawkSearchComponents, SortingComponentConfig } from '@configuration';
|
|
2
|
+
import { Sorting, SortingComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Sorting component is used to select the logic for ordering search results.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HawkSearchComponents, TabsComponentConfig } from '@configuration';
|
|
2
|
+
import { Facet, TabsComponentModel } from '@models';
|
|
2
3
|
import { BaseComponent } from '../../base.component';
|
|
3
4
|
/**
|
|
4
5
|
* The Tabs component is used to segment search results by item type, often products and content.
|