@bridgeline-digital/hawksearch-handlebars-ui 5.1.0-beta.0 → 5.1.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.
@@ -2,8 +2,6 @@ import { BaseComponent } from '@components';
2
2
  import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
3
3
  import { SearchFieldComponentModel, SearchResponse } from '@models';
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.
6
- *
7
5
  * ## Tag
8
6
  * The tag for this component is `<hawksearch-conceptearch-field>`.
9
7
  *
@@ -12,8 +10,6 @@ import { SearchFieldComponentModel, SearchResponse } from '@models';
12
10
  * | :- | :- |
13
11
  * | hawksearch-input | |
14
12
  *
15
- * Input elements with this attribute will trigger {@link Components.AutocompleteComponent | Autocomplete} functionality when the user types and executes a new search when the user hits the `enter` key.
16
- *
17
13
  * ## Default Template
18
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.
19
15
  * {@embed ./conceptsearch-field.component.hbs}
@@ -24,15 +20,9 @@ export declare class ConceptSearchFieldComponent extends BaseComponent<SearchFie
24
20
  protected componentName: keyof HawkSearchComponents;
25
21
  protected defaultHtml: any;
26
22
  protected bindFromEvent: boolean;
27
- private clickEventHandler;
28
- private defaultAutocompleteResponse?;
29
- private previousAutocompleteResponse?;
30
23
  private previousValue;
31
- private get recommendationsEnabled();
32
24
  connectedCallback(): void;
33
25
  disconnectedCallback(): void;
34
26
  protected getContentModel(): SearchFieldComponentModel;
35
27
  protected onRender(): void;
36
- private toggleAutocomplete;
37
- private displayDefaultAutocomplete;
38
28
  }
@@ -0,0 +1,29 @@
1
+ import { BaseComponent } from '@components';
2
+ import { HawkSearchComponents, ImageFinderFieldComponentConfig } from '@configuration';
3
+ import { ImageFinderFieldComponentModel, SearchResponse } from '@models';
4
+ /**
5
+ * The Search component contains a file 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.
6
+ *
7
+ * ## Tag
8
+ * The tag for this component is `<hawksearch-imagefinder-field>`.
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 ./imagefinder-field.component.hbs}
13
+ *
14
+ * @category Search
15
+ */
16
+ export declare class ImageFinderFieldComponent extends BaseComponent<ImageFinderFieldComponentConfig, SearchResponse, ImageFinderFieldComponentModel> {
17
+ protected componentName: keyof HawkSearchComponents;
18
+ protected defaultHtml: any;
19
+ protected bindFromEvent: boolean;
20
+ private clickEventHandler;
21
+ private previousValue;
22
+ private maxSize;
23
+ private allowedExtensions;
24
+ private handleFiles;
25
+ connectedCallback(): void;
26
+ disconnectedCallback(): void;
27
+ protected getContentModel(): ImageFinderFieldComponentModel;
28
+ protected onRender(): void;
29
+ }
@@ -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
+ }
@@ -8,6 +8,8 @@ export * from './pagination/pagination.component';
8
8
  export * from './query-suggestions/query-suggestions.component';
9
9
  export * from './search-field/search-field.component';
10
10
  export * from './conceptsearch-field/conceptsearch-field.component';
11
+ export * from './imagesearch-field/imagesearch-field.component';
12
+ export * from './imagefinder-field/imagefinder-field.component';
11
13
  export * from './search-results-item/search-results-item.component';
12
14
  export * from './search-results-list/search-results-list.component';
13
15
  export * from './search-results/search-results.component';
@@ -160,6 +160,14 @@ export interface SearchFieldComponentConfig extends BaseComponentConfig {
160
160
  placeholder?: string;
161
161
  };
162
162
  }
163
+ export interface ImageFinderFieldComponentConfig extends BaseComponentConfig {
164
+ strings?: {
165
+ dragImageMessage?: string;
166
+ uploadImageMessage?: string;
167
+ dropImageMessage?: string;
168
+ errorMessage?: string;
169
+ };
170
+ }
163
171
  export interface SearchResultsComponentConfig extends BaseComponentConfig {
164
172
  }
165
173
  export interface SearchResultsItemComponentConfig extends BaseComponentConfig {
@@ -227,6 +235,8 @@ export interface HawkSearchComponents {
227
235
  'related-searches-facet'?: RelatedSearchesFacetComponentConfig;
228
236
  'search-field'?: SearchFieldComponentConfig;
229
237
  'conceptsearch-field'?: SearchFieldComponentConfig;
238
+ 'imagesearch-field'?: SearchFieldComponentConfig;
239
+ 'imagefinder-field'?: SearchFieldComponentConfig;
230
240
  'search-results'?: SearchResultsComponentConfig;
231
241
  'search-results-item'?: SearchResultsItemComponentConfig;
232
242
  'search-results-list'?: SearchResultsListComponentConfig;