@bridgeline-digital/hawksearch-handlebars-ui 5.1.0 → 5.1.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.
@@ -1,29 +1,29 @@
1
1
  import { BaseComponent } from '@components';
2
- import { HawkSearchComponents, ImageFinderFieldComponentConfig } from '@configuration';
3
- import { ImageFinderFieldComponentModel, SearchResponse } from '@models';
2
+ import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
3
+ import { SearchFieldComponentModel, SearchResponse } from '@models';
4
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
5
  *
7
6
  * ## Tag
8
7
  * The tag for this component is `<hawksearch-imagefinder-field>`.
9
8
  *
9
+ * ## Event-Binding Attributes
10
+ * | Name | Value |
11
+ * | :- | :- |
12
+ * | hawksearch-input | |
13
+ *
10
14
  * ## Default Template
11
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.
12
16
  * {@embed ./imagefinder-field.component.hbs}
13
17
  *
14
18
  * @category Search
15
19
  */
16
- export declare class ImageFinderFieldComponent extends BaseComponent<ImageFinderFieldComponentConfig, SearchResponse, ImageFinderFieldComponentModel> {
20
+ export declare class ImageFinderFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
17
21
  protected componentName: keyof HawkSearchComponents;
18
22
  protected defaultHtml: any;
19
23
  protected bindFromEvent: boolean;
20
- private clickEventHandler;
21
24
  private previousValue;
22
- private maxSize;
23
- private allowedExtensions;
24
- private handleFiles;
25
25
  connectedCallback(): void;
26
26
  disconnectedCallback(): void;
27
- protected getContentModel(): ImageFinderFieldComponentModel;
27
+ protected getContentModel(): SearchFieldComponentModel;
28
28
  protected onRender(): void;
29
29
  }
@@ -1,29 +1,29 @@
1
1
  import { BaseComponent } from '@components';
2
- import { HawkSearchComponents, SearchFieldComponentConfig } from '@configuration';
3
- import { SearchFieldComponentModel, SearchResponse } from '@models';
2
+ import { HawkSearchComponents, ImageSearchFieldComponentConfig } from '@configuration';
3
+ import { ImageSearchFieldComponentModel, SearchResponse } from '@models';
4
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.
5
6
  *
6
7
  * ## Tag
7
8
  * The tag for this component is `<hawksearch-imagesearch-field>`.
8
9
  *
9
- * ## Event-Binding Attributes
10
- * | Name | Value |
11
- * | :- | :- |
12
- * | hawksearch-input | |
13
- *
14
10
  * ## Default Template
15
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.
16
12
  * {@embed ./imagesearch-field.component.hbs}
17
13
  *
18
14
  * @category Search
19
15
  */
20
- export declare class ImageSearchFieldComponent extends BaseComponent<SearchFieldComponentConfig, SearchResponse, SearchFieldComponentModel> {
16
+ export declare class ImageSearchFieldComponent extends BaseComponent<ImageSearchFieldComponentConfig, SearchResponse, ImageSearchFieldComponentModel> {
21
17
  protected componentName: keyof HawkSearchComponents;
22
18
  protected defaultHtml: any;
23
19
  protected bindFromEvent: boolean;
20
+ private clickEventHandler;
24
21
  private previousValue;
22
+ private maxSize;
23
+ private allowedExtensions;
24
+ private handleFiles;
25
25
  connectedCallback(): void;
26
26
  disconnectedCallback(): void;
27
- protected getContentModel(): SearchFieldComponentModel;
27
+ protected getContentModel(): ImageSearchFieldComponentModel;
28
28
  protected onRender(): void;
29
29
  }
@@ -8,8 +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
11
  export * from './imagefinder-field/imagefinder-field.component';
12
+ export * from './imagesearch-field/imagesearch-field.component';
13
13
  export * from './search-results-item/search-results-item.component';
14
14
  export * from './search-results-list/search-results-list.component';
15
15
  export * from './search-results/search-results.component';
@@ -160,7 +160,7 @@ export interface SearchFieldComponentConfig extends BaseComponentConfig {
160
160
  placeholder?: string;
161
161
  };
162
162
  }
163
- export interface ImageFinderFieldComponentConfig extends BaseComponentConfig {
163
+ export interface ImageSearchFieldComponentConfig extends BaseComponentConfig {
164
164
  strings?: {
165
165
  dragImageMessage?: string;
166
166
  uploadImageMessage?: string;