@bridgeline-digital/hawksearch-handlebars-ui 5.1.0-beta.1 → 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.
@@ -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
+ }
@@ -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 {
@@ -228,6 +236,7 @@ export interface HawkSearchComponents {
228
236
  'search-field'?: SearchFieldComponentConfig;
229
237
  'conceptsearch-field'?: SearchFieldComponentConfig;
230
238
  'imagesearch-field'?: SearchFieldComponentConfig;
239
+ 'imagefinder-field'?: SearchFieldComponentConfig;
231
240
  'search-results'?: SearchResultsComponentConfig;
232
241
  'search-results-item'?: SearchResultsItemComponentConfig;
233
242
  'search-results-list'?: SearchResultsListComponentConfig;