@bridgeline-digital/hawksearch-handlebars-ui 5.0.14 → 5.1.0-beta.1

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.
@@ -0,0 +1,28 @@
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
3
+ import { SearchFieldComponentModel, SearchResponse } from '@models';
4
+ /**
5
+ * ## Tag
6
+ * The tag for this component is `<hawksearch-conceptearch-field>`.
7
+ *
8
+ * ## Event-Binding Attributes
9
+ * | Name | Value |
10
+ * | :- | :- |
11
+ * | hawksearch-input | |
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 ./conceptsearch-field.component.hbs}
16
+ *
17
+ * @category Search
18
+ */
19
+ export declare class ConceptSearchFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
20
+ protected componentName: keyof HawkSearchComponents;
21
+ protected defaultHtml: any;
22
+ protected bindFromEvent: boolean;
23
+ private previousValue;
24
+ connectedCallback(): void;
25
+ disconnectedCallback(): void;
26
+ protected getContentModel(): SearchFieldComponentModel;
27
+ protected onRender(): void;
28
+ }
@@ -0,0 +1,29 @@
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
3
+ import { SearchFieldComponentModel, SearchResponse } from '@models';
4
+ /**
5
+ *
6
+ * ## Tag
7
+ * The tag for this component is `<hawksearch-imagesearch-field>`.
8
+ *
9
+ * ## Event-Binding Attributes
10
+ * | Name | Value |
11
+ * | :- | :- |
12
+ * | hawksearch-input | |
13
+ *
14
+ * ## Default Template
15
+ * 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.
16
+ * {@embed ./imagesearch-field.component.hbs}
17
+ *
18
+ * @category Search
19
+ */
20
+ export declare class ImageSearchFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
21
+ protected componentName: keyof HawkSearchComponents;
22
+ protected defaultHtml: any;
23
+ protected bindFromEvent: boolean;
24
+ private previousValue;
25
+ connectedCallback(): void;
26
+ disconnectedCallback(): void;
27
+ protected getContentModel(): SearchFieldComponentModel;
28
+ protected onRender(): void;
29
+ }
@@ -7,6 +7,7 @@ export * from './page-size/page-size.component';
7
7
  export * from './pagination/pagination.component';
8
8
  export * from './query-suggestions/query-suggestions.component';
9
9
  export * from './search-field/search-field.component';
10
+ export * from './conceptsearch-field/conceptsearch-field.component';
10
11
  export * from './search-results-item/search-results-item.component';
11
12
  export * from './search-results-list/search-results-list.component';
12
13
  export * from './search-results/search-results.component';
@@ -226,6 +226,8 @@ export interface HawkSearchComponents {
226
226
  'recent-searches-facet'?: RecentSearchesFacetComponentConfig;
227
227
  'related-searches-facet'?: RelatedSearchesFacetComponentConfig;
228
228
  'search-field'?: SearchFieldComponentConfig;
229
+ 'conceptsearch-field'?: SearchFieldComponentConfig;
230
+ 'imagesearch-field'?: SearchFieldComponentConfig;
229
231
  'search-results'?: SearchResultsComponentConfig;
230
232
  'search-results-item'?: SearchResultsItemComponentConfig;
231
233
  'search-results-list'?: SearchResultsListComponentConfig;
@@ -437,6 +439,13 @@ export interface HawkSearchConfig {
437
439
  * `false`
438
440
  */
439
441
  decodeFacetValues?: boolean;
442
+ /**
443
+ * Sets RequestType field to toggle ImageSearch or ConceptSearch
444
+ *
445
+ * #### Default Value
446
+ * `['ConceptSearch', 'ImageSearch']`
447
+ */
448
+ requestType?: string;
440
449
  };
441
450
  recommendations?: {
442
451
  /**