@sourceloop/search-client 4.3.2 → 5.0.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.
Files changed (37) hide show
  1. package/README.md +17 -16
  2. package/esm2020/lib/lib-configuration.mjs +63 -0
  3. package/esm2020/lib/search/search.component.mjs +319 -0
  4. package/esm2020/lib/search-lib.module.mjs +54 -0
  5. package/esm2020/lib/types.mjs +15 -0
  6. package/esm2020/public-api.mjs +12 -0
  7. package/{esm2015/sourceloop-search-client.js → esm2020/sourceloop-search-client.mjs} +0 -0
  8. package/fesm2015/sourceloop-search-client.mjs +450 -0
  9. package/fesm2015/sourceloop-search-client.mjs.map +1 -0
  10. package/fesm2020/sourceloop-search-client.mjs +444 -0
  11. package/fesm2020/sourceloop-search-client.mjs.map +1 -0
  12. package/lib/search/search.component.d.ts +3 -0
  13. package/lib/search-lib.module.d.ts +13 -0
  14. package/package.json +33 -21
  15. package/sourceloop-search-client.d.ts +1 -0
  16. package/bundles/sourceloop-search-client.umd.js +0 -428
  17. package/bundles/sourceloop-search-client.umd.js.map +0 -1
  18. package/esm2015/lib/lib-configuration.js +0 -66
  19. package/esm2015/lib/lib-configuration.ngsummary.json +0 -1
  20. package/esm2015/lib/search/search.component.js +0 -297
  21. package/esm2015/lib/search/search.component.ngfactory.js +0 -129
  22. package/esm2015/lib/search/search.component.ngsummary.json +0 -1
  23. package/esm2015/lib/search/search.component.scss.shim.ngstyle.js +0 -9
  24. package/esm2015/lib/search-lib.module.js +0 -29
  25. package/esm2015/lib/search-lib.module.ngfactory.js +0 -32
  26. package/esm2015/lib/search-lib.module.ngsummary.json +0 -1
  27. package/esm2015/lib/types.js +0 -11
  28. package/esm2015/lib/types.ngsummary.json +0 -1
  29. package/esm2015/public-api.js +0 -8
  30. package/esm2015/public-api.ngsummary.json +0 -1
  31. package/esm2015/sourceloop-search-client.ngsummary.json +0 -1
  32. package/fesm2015/sourceloop-search-client.js +0 -408
  33. package/fesm2015/sourceloop-search-client.js.map +0 -1
  34. package/lib/search/search.component.ngfactory.d.ts +0 -1
  35. package/lib/search/search.component.scss.shim.ngstyle.d.ts +0 -1
  36. package/lib/search-lib.module.ngfactory.d.ts +0 -3
  37. package/sourceloop-search-client.metadata.json +0 -1
@@ -0,0 +1,54 @@
1
+ // Copyright (c) 2022 Sourcefuse Technologies
2
+ //
3
+ // This software is released under the MIT License.
4
+ // https://opensource.org/licenses/MIT
5
+ import { CommonModule } from '@angular/common';
6
+ import { HttpClientModule } from '@angular/common/http';
7
+ import { NgModule } from '@angular/core';
8
+ import { FlexLayoutModule } from '@angular/flex-layout';
9
+ import { FormsModule } from '@angular/forms';
10
+ import { MatFormFieldModule } from '@angular/material/form-field';
11
+ import { MatIconModule } from '@angular/material/icon';
12
+ import { MatInputModule } from '@angular/material/input';
13
+ import { MatSelectModule } from '@angular/material/select';
14
+ import { SearchComponent } from './search/search.component';
15
+ import * as i0 from "@angular/core";
16
+ export class SearchLibModule {
17
+ }
18
+ SearchLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
19
+ SearchLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, declarations: [SearchComponent], imports: [CommonModule,
20
+ FormsModule,
21
+ HttpClientModule,
22
+ MatSelectModule,
23
+ MatFormFieldModule,
24
+ MatIconModule,
25
+ MatInputModule,
26
+ FlexLayoutModule], exports: [SearchComponent] });
27
+ SearchLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, imports: [[
28
+ CommonModule,
29
+ FormsModule,
30
+ HttpClientModule,
31
+ MatSelectModule,
32
+ MatFormFieldModule,
33
+ MatIconModule,
34
+ MatInputModule,
35
+ FlexLayoutModule,
36
+ ]] });
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, decorators: [{
38
+ type: NgModule,
39
+ args: [{
40
+ declarations: [SearchComponent],
41
+ imports: [
42
+ CommonModule,
43
+ FormsModule,
44
+ HttpClientModule,
45
+ MatSelectModule,
46
+ MatFormFieldModule,
47
+ MatIconModule,
48
+ MatInputModule,
49
+ FlexLayoutModule,
50
+ ],
51
+ exports: [SearchComponent],
52
+ }]
53
+ }] });
54
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLWxpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3NlYXJjaC1saWIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZDQUE2QztBQUM3QyxFQUFFO0FBQ0YsbURBQW1EO0FBQ25ELHNDQUFzQztBQUN0QyxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sc0JBQXNCLENBQUM7QUFDdEQsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxzQkFBc0IsQ0FBQztBQUN0RCxPQUFPLEVBQUMsV0FBVyxFQUFDLE1BQU0sZ0JBQWdCLENBQUM7QUFDM0MsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sOEJBQThCLENBQUM7QUFDaEUsT0FBTyxFQUFDLGFBQWEsRUFBQyxNQUFNLHdCQUF3QixDQUFDO0FBQ3JELE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSx5QkFBeUIsQ0FBQztBQUN2RCxPQUFPLEVBQUMsZUFBZSxFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFFekQsT0FBTy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technologies
2
+ //
3
+ // This software is released under the MIT License.
4
+ // https://opensource.org/licenses/MIT
5
+ import { InjectionToken } from '@angular/core';
6
+ // cant use T extends IReturnType here
7
+ export const SEARCH_SERVICE_TOKEN = new InjectionToken('Search_Service_Token');
8
+ // IRequestParameters default values
9
+ export const DEFAULT_LIMIT = 20;
10
+ export const DEFAULT_LIMIT_TYPE = false;
11
+ export const DEFAULT_ORDER = [];
12
+ export const DEBOUNCE_TIME = 1000;
13
+ export const DEFAULT_OFFSET = 0;
14
+ export const DEFAULT_SAVE_IN_RECENTS = true;
15
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbGliL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZDQUE2QztBQUM3QyxFQUFFO0FBQ0YsbURBQW1EO0FBQ25ELHNDQUFzQztBQUN0QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBa0M3QyxzQ0FBc0M7QUFDdEMsTUFBTSxDQUFDLE1BQU0sb0JBQW9CLEdBQy9CLElBQUksY0FBYyxDQUE4QixzQkFBc0IsQ0FBQyxDQUFDO0FBaUIxRSxvQ0FBb0M7QUFDcEMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLEVBQUUsQ0FBQztBQUNoQyxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxLQUFLLENBQUM7QUFDeEMsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLEVBQUUsQ0FBQztBQUNoQyxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDO0FBQ2xDLE1BQU0sQ0FBQyxNQUFNLGNBQWMsR0FBRyxDQUFDLENBQUM7QUFDaEMsTUFBTSxDQUFDLE1BQU0sdUJBQXVCLEdBQUcsSUFBSSx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uZXhwb3J0IGNvbnN0IERFRkFVTFRfU0FWRV9JTl9SRUNFTlRTID0gdHJ1ZTtcbiJdfQ==
@@ -0,0 +1,12 @@
1
+ // Copyright (c) 2022 Sourcefuse Technologies
2
+ //
3
+ // This software is released under the MIT License.
4
+ // https://opensource.org/licenses/MIT
5
+ /*
6
+ * Public API Surface of my-lib
7
+ */
8
+ export * from './lib/search-lib.module';
9
+ export * from './lib/search/search.component';
10
+ export * from './lib/lib-configuration';
11
+ export * from './lib/types';
12
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDZDQUE2QztBQUM3QyxFQUFFO0FBQ0YsbURBQW1EO0FBQ25ELHNDQUFzQztBQUN0Qzs7R0FFRztBQUVILGNBQWMseUJBQXlCLENBQUM7QUFDeEMsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsYUFBYSxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQ29weXJpZ2h0IChjKSAyMDIyIFNvdXJjZWZ1c2UgVGVjaG5vbG9naWVzXG4vL1xuLy8gVGhpcyBzb2Z0d2FyZSBpcyByZWxlYXNlZCB1bmRlciB0aGUgTUlUIExpY2Vuc2UuXG4vLyBodHRwczovL29wZW5zb3VyY2Uub3JnL2xpY2Vuc2VzL01JVFxuLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBteS1saWJcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZWFyY2gtbGliLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9saWItY29uZmlndXJhdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2xpYi90eXBlcyc7XG4iXX0=
@@ -0,0 +1,450 @@
1
+ import * as i8 from '@angular/common';
2
+ import { isPlatformBrowser, CommonModule } from '@angular/common';
3
+ import { HttpClientModule } from '@angular/common/http';
4
+ import * as i0 from '@angular/core';
5
+ import { InjectionToken, EventEmitter, PLATFORM_ID, Component, Inject, Input, Output, ViewChild, NgModule } from '@angular/core';
6
+ import { FlexLayoutModule } from '@angular/flex-layout';
7
+ import * as i7 from '@angular/forms';
8
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
9
+ import * as i1 from '@angular/material/form-field';
10
+ import { MatFormFieldModule } from '@angular/material/form-field';
11
+ import * as i2 from '@angular/material/icon';
12
+ import { MatIconModule } from '@angular/material/icon';
13
+ import * as i6 from '@angular/material/input';
14
+ import { MatInputModule } from '@angular/material/input';
15
+ import * as i3 from '@angular/material/select';
16
+ import { MatSelectModule } from '@angular/material/select';
17
+ import { Subject } from 'rxjs';
18
+ import { tap, debounceTime } from 'rxjs/operators';
19
+ import * as i4 from '@angular/material/core';
20
+ import * as i5 from '@angular/flex-layout/flex';
21
+
22
+ // Copyright (c) 2022 Sourcefuse Technologies
23
+ // cant use T extends IReturnType here
24
+ const SEARCH_SERVICE_TOKEN = new InjectionToken('Search_Service_Token');
25
+ // IRequestParameters default values
26
+ const DEFAULT_LIMIT = 20;
27
+ const DEFAULT_LIMIT_TYPE = false;
28
+ const DEFAULT_ORDER = [];
29
+ const DEBOUNCE_TIME = 1000;
30
+ const DEFAULT_OFFSET = 0;
31
+ const DEFAULT_SAVE_IN_RECENTS = true;
32
+
33
+ // Copyright (c) 2022 Sourcefuse Technologies
34
+ const ALL_LABEL = 'All';
35
+ class SearchComponent {
36
+ constructor(searchService,
37
+ // tslint:disable-next-line:ban-types
38
+ platformId, cdr) {
39
+ this.searchService = searchService;
40
+ this.platformId = platformId;
41
+ this.cdr = cdr;
42
+ this.searchBoxInput = '';
43
+ this.suggestionsDisplay = false;
44
+ this.categoryDisplay = false;
45
+ this.searching = false;
46
+ this.suggestions = [];
47
+ this.recentSearches = [];
48
+ this.category = ALL_LABEL;
49
+ this.searchRequest$ = new Subject();
50
+ // emitted when user clicks one of the suggested results (including recent search sugestions)
51
+ this.clicked = new EventEmitter();
52
+ this.searched = new EventEmitter();
53
+ this.disabled = false;
54
+ }
55
+ get config() {
56
+ return this._config;
57
+ }
58
+ set config(value) {
59
+ this._config = value;
60
+ if (value && value.models) {
61
+ value.models.unshift({
62
+ name: ALL_LABEL,
63
+ displayName: ALL_LABEL,
64
+ });
65
+ }
66
+ else if (value && !value.models) {
67
+ value.models = [
68
+ {
69
+ name: ALL_LABEL,
70
+ displayName: ALL_LABEL,
71
+ },
72
+ ];
73
+ }
74
+ else {
75
+ // do nothing
76
+ }
77
+ }
78
+ ngOnInit() {
79
+ this.searchRequest$
80
+ .pipe(tap(v => (this.suggestions = [])), debounceTime(DEBOUNCE_TIME))
81
+ .subscribe((value) => {
82
+ this.searched.emit({
83
+ event: value.event,
84
+ keyword: value.input,
85
+ category: this.category,
86
+ });
87
+ this.getSuggestions(value);
88
+ this.cdr.markForCheck();
89
+ });
90
+ }
91
+ // ControlValueAccessor Implementation
92
+ writeValue(value) {
93
+ this.searchBoxInput = value;
94
+ }
95
+ // When the value in the UI is changed, this method will invoke a callback function
96
+ registerOnChange(fn) {
97
+ this.onChange = fn;
98
+ }
99
+ registerOnTouched(fn) {
100
+ this.onTouched = fn;
101
+ }
102
+ setDisabledState(isDisabled) {
103
+ this.disabled = isDisabled;
104
+ }
105
+ getSuggestions(eventValue) {
106
+ var _a, _b, _c, _d, _e;
107
+ eventValue.input = eventValue.input.trim();
108
+ if (!eventValue.input.length) {
109
+ return;
110
+ }
111
+ const order = (_a = this.config.order) !== null && _a !== void 0 ? _a : DEFAULT_ORDER;
112
+ let orderString = '';
113
+ order.forEach(preference => (orderString = `${orderString}${preference} `));
114
+ let saveInRecents = (_b = this.config.saveInRecents) !== null && _b !== void 0 ? _b : DEFAULT_SAVE_IN_RECENTS;
115
+ if (this.config.saveInRecents && this.config.saveInRecentsOnlyOnEnter) {
116
+ if (!eventValue.event ||
117
+ (eventValue.event instanceof KeyboardEvent &&
118
+ eventValue.event.key === 'Enter')) {
119
+ saveInRecents = true; // save in recents only on enter or change in category
120
+ }
121
+ else {
122
+ // do not save in recent search on typing
123
+ saveInRecents = false;
124
+ }
125
+ }
126
+ /* need to put default value here and not in contructor
127
+ because sonar was giving code smell with definite assertion as all these parameters are optional */
128
+ const requestParameters = {
129
+ match: eventValue.input,
130
+ sources: this._categoryToSourceName(this.category),
131
+ limit: (_c = this.config.limit) !== null && _c !== void 0 ? _c : DEFAULT_LIMIT,
132
+ limitByType: (_d = this.config.limitByType) !== null && _d !== void 0 ? _d : DEFAULT_LIMIT_TYPE,
133
+ order: orderString,
134
+ offset: (_e = this.config.offset) !== null && _e !== void 0 ? _e : DEFAULT_OFFSET,
135
+ };
136
+ this.searching = true;
137
+ this.cdr.markForCheck();
138
+ this.searchService
139
+ .searchApiRequest(requestParameters, saveInRecents)
140
+ .subscribe((value) => {
141
+ this.suggestions = value;
142
+ this.searching = false;
143
+ this.cdr.markForCheck();
144
+ }, (_error) => {
145
+ this.suggestions = [];
146
+ this.searching = false;
147
+ this.cdr.markForCheck();
148
+ });
149
+ }
150
+ getRecentSearches() {
151
+ if (!this.config.hideRecentSearch &&
152
+ this.searchService.recentSearchApiRequest) {
153
+ this.searchService.recentSearchApiRequest().subscribe((value) => {
154
+ this.recentSearches = value;
155
+ this.cdr.markForCheck();
156
+ }, (_error) => {
157
+ this.recentSearches = [];
158
+ this.cdr.markForCheck();
159
+ });
160
+ }
161
+ }
162
+ // event can be KeyBoardEvent or Event of type 'change' fired on change in value of drop down for category
163
+ hitSearchApi(event) {
164
+ // this will happen only in case user searches something and then erases it, we need to update recent search
165
+ if (!this.searchBoxInput) {
166
+ this.suggestions = [];
167
+ this.getRecentSearches();
168
+ return;
169
+ }
170
+ // no debounce time needed in case of searchOnlyOnEnter
171
+ if (this.config.searchOnlyOnEnter) {
172
+ if (!event || (event instanceof KeyboardEvent && event.key === 'Enter')) {
173
+ this.getSuggestions({ input: this.searchBoxInput, event });
174
+ }
175
+ return;
176
+ }
177
+ // no debounce time needed in case of change in category
178
+ if (!event) {
179
+ this.getSuggestions({ input: this.searchBoxInput, event });
180
+ return;
181
+ }
182
+ this.searchRequest$.next({
183
+ input: this.searchBoxInput,
184
+ event,
185
+ });
186
+ }
187
+ populateValue(suggestion, event) {
188
+ const value = suggestion[this.config.displayPropertyName]; // converted to string to assign value to searchBoxInput
189
+ this.searchBoxInput = value;
190
+ this.suggestionsDisplay = false;
191
+ // ngModelChange doesn't detect change in value when populated from outside, hence calling manually
192
+ this.onChange(this.searchBoxInput);
193
+ // need to do this to show more search options for selected suggestion - just in case user reopens search input
194
+ this.getSuggestions({ input: this.searchBoxInput, event });
195
+ this.clicked.emit({ item: suggestion, event });
196
+ }
197
+ populateValueRecentSearch(recentSearch, event) {
198
+ event.stopPropagation();
199
+ event.preventDefault();
200
+ const value = recentSearch['match'];
201
+ this.searchBoxInput = value;
202
+ this.suggestionsDisplay = false;
203
+ this.onChange(this.searchBoxInput);
204
+ // need to do this to show more search options for selected suggestion - just in case user reopens search input
205
+ this.getSuggestions({ input: this.searchBoxInput, event });
206
+ this.focusInput();
207
+ this.showSuggestions();
208
+ }
209
+ fetchModelImageUrlFromSuggestion(suggestion) {
210
+ const modelName = suggestion['source'];
211
+ let url;
212
+ this.config.models.forEach(model => {
213
+ if (model.name === modelName && model.imageUrl) {
214
+ url = model.imageUrl;
215
+ }
216
+ });
217
+ return url;
218
+ }
219
+ boldString(str, substr) {
220
+ const strRegExp = new RegExp(`(${substr})`, 'gi');
221
+ const stringToMakeBold = str;
222
+ return stringToMakeBold.replace(strRegExp, `<b>$1</b>`);
223
+ }
224
+ hideSuggestions() {
225
+ this.suggestionsDisplay = false;
226
+ this.onTouched();
227
+ }
228
+ showSuggestions() {
229
+ this.suggestionsDisplay = true;
230
+ this.getRecentSearches();
231
+ }
232
+ focusInput() {
233
+ if (isPlatformBrowser(this.platformId)) {
234
+ this.searchInputElement.nativeElement.focus();
235
+ }
236
+ }
237
+ setCategory(category) {
238
+ this.category = category;
239
+ this.categoryDisplay = false;
240
+ if (this.searchBoxInput) {
241
+ this.hitSearchApi();
242
+ this.focusInput();
243
+ this.showSuggestions();
244
+ }
245
+ }
246
+ showCategory() {
247
+ this.categoryDisplay = !this.categoryDisplay;
248
+ }
249
+ hideCategory() {
250
+ this.categoryDisplay = false;
251
+ }
252
+ resetInput() {
253
+ this.searchBoxInput = '';
254
+ this.suggestions = [];
255
+ this.suggestionsDisplay = true;
256
+ this.focusInput();
257
+ // ngModelChange doesn't detect change in value when populated from outside, hence calling manually
258
+ this.onChange(this.searchBoxInput);
259
+ this.getRecentSearches();
260
+ }
261
+ ngOnDestroy() {
262
+ this.searchRequest$.unsubscribe();
263
+ }
264
+ _categoryToSourceName(category) {
265
+ if (category === ALL_LABEL) {
266
+ return [];
267
+ }
268
+ else {
269
+ return [category];
270
+ }
271
+ }
272
+ getModelFromModelName(name) {
273
+ return this.config.models.find(item => item.name === name);
274
+ }
275
+ getModelsWithSuggestions() {
276
+ const modelsWithSuggestions = [];
277
+ const sources = [];
278
+ this.suggestions.forEach(suggestion => {
279
+ if (sources.indexOf(suggestion['source']) >= 0) {
280
+ modelsWithSuggestions.every(modelWithSuggestions => {
281
+ if (modelWithSuggestions.model.name === suggestion['source']) {
282
+ modelWithSuggestions.items.push(suggestion);
283
+ return false;
284
+ }
285
+ return true;
286
+ });
287
+ }
288
+ else {
289
+ const model = this.getModelFromModelName(suggestion['source']);
290
+ modelsWithSuggestions.push({ model, items: [suggestion] });
291
+ sources.push(suggestion['source']);
292
+ }
293
+ });
294
+ return modelsWithSuggestions;
295
+ }
296
+ }
297
+ SearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchComponent, deps: [{ token: SEARCH_SERVICE_TOKEN }, { token: PLATFORM_ID }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
298
+ SearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SearchComponent, selector: "sourceloop-search", inputs: { config: "config", titleTemplate: "titleTemplate", subtitleTemplate: "subtitleTemplate" }, outputs: { clicked: "clicked", searched: "searched" }, providers: [
299
+ {
300
+ provide: NG_VALUE_ACCESSOR,
301
+ useExisting: SearchComponent,
302
+ multi: true,
303
+ },
304
+ ], viewQueries: [{ propertyName: "searchInputElement", first: true, predicate: ["searchInput"], descendants: true }], ngImport: i0, template: "<div fxLayout fxLayoutAlign=\"start center\" class=\"toolbar-search\">\n <mat-form-field appearance=\"outline\" class=\"toolbar-search-input\">\n <input\n matInput\n autocomplete=\"off\"\n type=\"text\"\n [placeholder]=\"\n config.placeholderFunction\n ? config.placeholderFunction(searchInput.value, category)\n : config.placeholder || 'Search'\n \"\n #searchInput\n name=\"searchInput\"\n (focus)=\"showSuggestions()\"\n (blur)=\"hideSuggestions()\"\n [(ngModel)]=\"searchBoxInput\"\n (keyup)=\"hitSearchApi($event)\"\n placeholder=\"Search\"\n (ngModelChange)=\"onChange(this.searchBoxInput)\"\n [disabled]=\"disabled\"\n />\n <mat-icon matPrefix [className]=\"config.searchIconClass\"></mat-icon>\n <mat-icon\n *ngIf=\"searchBoxInput\"\n matSuffix\n [className]=\"config.crossIconClass\"\n (click)=\"resetInput()\"\n ></mat-icon>\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"toolbar-search-select\">\n <mat-icon matSuffix [className]=\"config.dropDownButtonIconClass\"></mat-icon>\n <mat-select\n [value]=\"category\"\n (selectionChange)=\"setCategory($event.value)\"\n panelClass=\"search-select\"\n >\n <mat-option [value]=\"model.name\" *ngFor=\"let model of config.models\">\n {{ model.displayName }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n</div>\n\n<div class=\"search-container\">\n <div\n *ngIf=\"suggestionsDisplay && (recentSearches.length || suggestions.length)\"\n class=\"search-popup\"\n >\n <ng-container *ngIf=\"searchBoxInput\">\n <span *ngIf=\"suggestions.length === 0\" class=\"search-message\">\n <ng-container *ngIf=\"searching\"> searching... </ng-container>\n <ng-container *ngIf=\"!searching\">\n {{ config.noResultMessage }}\n </ng-container>\n </span>\n <ng-container *ngIf=\"config.categorizeResults && suggestions.length\">\n <div\n class=\"search-result\"\n *ngFor=\"let modelWithSuggestions of getModelsWithSuggestions()\"\n >\n <h3 class=\"suggestions-heading\">\n <img\n *ngIf=\"modelWithSuggestions.model.imageUrl\"\n [src]=\"modelWithSuggestions.model.imageUrl\"\n [alt]=\"modelWithSuggestions.model.displayName\"\n />\n {{ modelWithSuggestions.model.displayName }} ({{\n modelWithSuggestions.items.length\n }})\n </h3>\n <ul>\n <li\n *ngFor=\"let suggestion of modelWithSuggestions.items\"\n (mousedown)=\"populateValue(suggestion, $event)\"\n class=\"suggestions\"\n >\n <ng-container *ngIf=\"subtitleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n subtitleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n <p\n *ngIf=\"!titleTemplate\"\n [innerHTML]=\"\n boldString(\n suggestion[config.displayPropertyName],\n searchBoxInput\n )\n \"\n style=\"display: inline\"\n ></p>\n <ng-container *ngIf=\"titleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n titleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n </li>\n </ul>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!config.categorizeResults\">\n <div class=\"search-result\">\n <ul>\n <li\n *ngFor=\"let suggestion of suggestions\"\n (mousedown)=\"populateValue(suggestion, $event)\"\n >\n <!--Need to call fetchModelImageUrlFromSuggestion as each suggestion can come from different model-->\n <img\n *ngIf=\"\n !titleTemplate && fetchModelImageUrlFromSuggestion(suggestion)\n \"\n class=\"suggestions-categorize-false\"\n [src]=\"fetchModelImageUrlFromSuggestion(suggestion)\"\n style=\"margin-right: 5px\"\n alt=\"Img\"\n />\n <ng-container *ngIf=\"subtitleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n subtitleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n <p\n *ngIf=\"!titleTemplate\"\n [innerHTML]=\"\n boldString(\n suggestion[config.displayPropertyName],\n searchBoxInput\n )\n \"\n style=\"display: inline\"\n ></p>\n <ng-container *ngIf=\"titleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n titleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n </li>\n </ul>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!config.hideRecentSearch && recentSearches.length > 0\">\n <div class=\"recent-searches\">\n <h3 class=\"suggestions-heading\">Recent Searches</h3>\n <ul>\n <li\n *ngFor=\"let recentSearch of recentSearches\"\n class=\"suggestions\"\n (mousedown)=\"populateValueRecentSearch(recentSearch, $event)\"\n >\n <mat-icon\n matPrefix\n [className]=\"config.recentSearchIconClass\"\n ></mat-icon>\n\n <span>&nbsp;{{ recentSearch.match }}</span>\n </li>\n </ul>\n </div>\n </ng-container>\n </div>\n</div>\n", styles: [":host ::ng-deep .mat-form-field-wrapper{padding:0}:host ::ng-deep .mat-form-field-wrapper .mat-form-field-prefix{margin-right:12px}.toolbar-search-input{width:86%}.toolbar-search-input ::ng-deep input{margin:0}.toolbar-search-input ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-start{border-color:transparent}.toolbar-search-input ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-end{border:none;border-radius:0}.icomoon.Search,.icomoon.close{height:1rem;width:1rem;font-size:1rem;color:#33333380;padding-bottom:4px}.icomoon.close{cursor:pointer}.toolbar-search-select{width:14%}.toolbar-search-select ::ng-deep .mat-select-arrow{opacity:0}.toolbar-search-select ::ng-deep .mat-select-arrow-wrapper{display:inline-block;width:1px}.toolbar-search-select ::ng-deep .mat-select-value-text{font-size:9px}.toolbar-search-select ::ng-deep .mat-form-field-suffix .mat-icon{width:12px;font-size:14px}.toolbar-search-select ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-start{border-color:transparent;border-radius:0}.toolbar-search-select ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-end{border:none}.toolbar-search-select ::ng-deep .mat-form-field-flex .mat-form-field-infix{-webkit-padding-before:.7em!important}.toolbar-search{width:515px;background-color:#f7f7f7;border-radius:0 0 4px 4px}.toolbar-search ::ng-deep .mat-form-field-appearance-outline .mat-form-field-flex{height:39px;align-items:center!important}.toolbar-search ::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0}.toolbar-search ::ng-deep .mat-form-field-infix{height:auto!important}.search-container{position:relative;width:515px}.search-container .search-popup{padding:0 15px 15px;margin:0;max-height:80vh;overflow-x:hidden;overflow-y:auto;position:absolute;top:100%;left:0px;right:0px;z-index:9999;background-color:#fff;box-shadow:0 5px 4px #0003;border-radius:0 0 4px 4px}.search-container .search-popup hr{border:0;border-top:1px solid #ebebeb;margin:0;position:sticky;top:0;padding:0 0 15px;z-index:1}.search-container .search-popup .search-message{display:inline-block;width:100%;text-align:center;font-size:16px;padding-top:12px}.search-container .search-popup .search-item-info{color:#91263b;text-align:center;font-size:12px;margin-bottom:15px;padding-top:12px}.search-container .search-popup ul{padding:0;margin:0}.search-container .search-popup ul li{list-style:none;font-size:1rem;font-weight:400;line-height:1.5;color:#333}.search-container .search-popup ul li.suggestions{font-size:15px;line-height:36px;padding:0 15px 0 44px;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.search-container .search-popup ul li.suggestions:hover{background-color:#fee8e8}.search-container .search-popup ul li.suggestions svg{margin-right:5px}.search-container .search-popup ul li.suggestions-categorize-false:hover{background-color:#fee8e8}.search-container .search-popup .search-result{padding:10px 0 0;margin:0 -15px}.search-container .search-popup .search-result.no-categorize-result ul{width:100%;padding:0;margin:0 0 10px}.search-container .search-popup .search-result.no-categorize-result ul li{font-size:15px;line-height:36px;padding:0 15px 0 31px;display:flex;align-items:center;cursor:pointer}.search-container .search-popup .search-result.no-categorize-result ul li:hover{background-color:#fee8e8}.search-container .search-popup .search-result.no-categorize-result ul li img{width:18px;margin-right:9px}.search-container .search-popup .suggestions-heading{color:#9c9c9c;font-size:14px;font-weight:400;margin:0 0 10px 17px;display:flex;align-items:center;position:relative}.search-container .search-popup .suggestions-heading .show-more{position:absolute;right:20px;color:#d1d1d1;font-size:12px;cursor:pointer;text-decoration:none}.search-container .search-popup .suggestions-heading .show-more :hover{text-decoration:underline}.search-container .search-popup .suggestions-heading img{width:18px;margin-right:9px}.search-container .search-popup .recent-searches{padding:10px 0 0;margin:0 -15px}.search-container .search-popup .recent-searches ul{display:inline-block;width:100%}.search-container .search-popup .recent-searches ul li.suggestions{display:flex}.search-container .search-popup .recent-searches ul li.suggestions span{width:100%;overflow:hidden;text-overflow:ellipsis}.search-container .search-popup .recent-searches .suggestions{display:flex}.search-container .search-popup .recent-searches .suggestions-heading{margin-left:30px}.search-container .search-popup .recent-searches li.suggestions{padding-left:31px}::ng-deep .search-select.mat-select-panel{margin-top:30px;margin-left:10px}::ng-deep .search-select .mat-option-text{display:contents!important}::ng-deep .toolbar-search .mat-form-field-infix{font-size:14px}::ng-deep .toolbar-search input{line-height:14px}::ng-deep .toolbar-search .mat-form-field-outline:first-child .mat-form-field-outline-start,::ng-deep .toolbar-search .mat-form-field-outline:first-child .mat-form-field-outline-end{background-color:#f1f3f4}::ng-deep .toolbar-search:hover .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-width:1px!important;border-color:#a53159!important}::ng-deep .toolbar-search:hover .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border:1px solid #a53159!important;border-left-style:none!important;border-right-style:none!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-radius:0;border-color:transparent!important;background-color:#a53159!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#a53159!important;background-color:#a53159!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-select{color:#fff!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .icomoon.arrow_down{color:#fff}::ng-deep .toolbar-search:focus-within .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-width:2px!important;border-color:#90003b!important}::ng-deep .toolbar-search:focus-within .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border:2px solid #90003b!important;border-left-style:none!important;border-right-style:none!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-radius:0;border-color:transparent!important;background-color:#90003b!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#90003b!important;background-color:#90003b!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-select{color:#fff!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .icomoon.arrow_down{color:#fff}::ng-deep .toolbar-search .mat-select-arrow{opacity:0}\n"], components: [{ type: i1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i4.MatOption, selector: "mat-option", exportAs: ["matOption"] }], directives: [{ type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { type: i7.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i7.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i7.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.MatPrefix, selector: "[matPrefix]" }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.MatSuffix, selector: "[matSuffix]" }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
305
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchComponent, decorators: [{
306
+ type: Component,
307
+ args: [{ selector: 'sourceloop-search', providers: [
308
+ {
309
+ provide: NG_VALUE_ACCESSOR,
310
+ useExisting: SearchComponent,
311
+ multi: true,
312
+ },
313
+ ], template: "<div fxLayout fxLayoutAlign=\"start center\" class=\"toolbar-search\">\n <mat-form-field appearance=\"outline\" class=\"toolbar-search-input\">\n <input\n matInput\n autocomplete=\"off\"\n type=\"text\"\n [placeholder]=\"\n config.placeholderFunction\n ? config.placeholderFunction(searchInput.value, category)\n : config.placeholder || 'Search'\n \"\n #searchInput\n name=\"searchInput\"\n (focus)=\"showSuggestions()\"\n (blur)=\"hideSuggestions()\"\n [(ngModel)]=\"searchBoxInput\"\n (keyup)=\"hitSearchApi($event)\"\n placeholder=\"Search\"\n (ngModelChange)=\"onChange(this.searchBoxInput)\"\n [disabled]=\"disabled\"\n />\n <mat-icon matPrefix [className]=\"config.searchIconClass\"></mat-icon>\n <mat-icon\n *ngIf=\"searchBoxInput\"\n matSuffix\n [className]=\"config.crossIconClass\"\n (click)=\"resetInput()\"\n ></mat-icon>\n </mat-form-field>\n\n <mat-form-field appearance=\"outline\" class=\"toolbar-search-select\">\n <mat-icon matSuffix [className]=\"config.dropDownButtonIconClass\"></mat-icon>\n <mat-select\n [value]=\"category\"\n (selectionChange)=\"setCategory($event.value)\"\n panelClass=\"search-select\"\n >\n <mat-option [value]=\"model.name\" *ngFor=\"let model of config.models\">\n {{ model.displayName }}\n </mat-option>\n </mat-select>\n </mat-form-field>\n</div>\n\n<div class=\"search-container\">\n <div\n *ngIf=\"suggestionsDisplay && (recentSearches.length || suggestions.length)\"\n class=\"search-popup\"\n >\n <ng-container *ngIf=\"searchBoxInput\">\n <span *ngIf=\"suggestions.length === 0\" class=\"search-message\">\n <ng-container *ngIf=\"searching\"> searching... </ng-container>\n <ng-container *ngIf=\"!searching\">\n {{ config.noResultMessage }}\n </ng-container>\n </span>\n <ng-container *ngIf=\"config.categorizeResults && suggestions.length\">\n <div\n class=\"search-result\"\n *ngFor=\"let modelWithSuggestions of getModelsWithSuggestions()\"\n >\n <h3 class=\"suggestions-heading\">\n <img\n *ngIf=\"modelWithSuggestions.model.imageUrl\"\n [src]=\"modelWithSuggestions.model.imageUrl\"\n [alt]=\"modelWithSuggestions.model.displayName\"\n />\n {{ modelWithSuggestions.model.displayName }} ({{\n modelWithSuggestions.items.length\n }})\n </h3>\n <ul>\n <li\n *ngFor=\"let suggestion of modelWithSuggestions.items\"\n (mousedown)=\"populateValue(suggestion, $event)\"\n class=\"suggestions\"\n >\n <ng-container *ngIf=\"subtitleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n subtitleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n <p\n *ngIf=\"!titleTemplate\"\n [innerHTML]=\"\n boldString(\n suggestion[config.displayPropertyName],\n searchBoxInput\n )\n \"\n style=\"display: inline\"\n ></p>\n <ng-container *ngIf=\"titleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n titleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n </li>\n </ul>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!config.categorizeResults\">\n <div class=\"search-result\">\n <ul>\n <li\n *ngFor=\"let suggestion of suggestions\"\n (mousedown)=\"populateValue(suggestion, $event)\"\n >\n <!--Need to call fetchModelImageUrlFromSuggestion as each suggestion can come from different model-->\n <img\n *ngIf=\"\n !titleTemplate && fetchModelImageUrlFromSuggestion(suggestion)\n \"\n class=\"suggestions-categorize-false\"\n [src]=\"fetchModelImageUrlFromSuggestion(suggestion)\"\n style=\"margin-right: 5px\"\n alt=\"Img\"\n />\n <ng-container *ngIf=\"subtitleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n subtitleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n <p\n *ngIf=\"!titleTemplate\"\n [innerHTML]=\"\n boldString(\n suggestion[config.displayPropertyName],\n searchBoxInput\n )\n \"\n style=\"display: inline\"\n ></p>\n <ng-container *ngIf=\"titleTemplate\">\n <ng-container\n *ngTemplateOutlet=\"\n titleTemplate;\n context: {$implicit: suggestion}\n \"\n >\n </ng-container>\n </ng-container>\n </li>\n </ul>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!config.hideRecentSearch && recentSearches.length > 0\">\n <div class=\"recent-searches\">\n <h3 class=\"suggestions-heading\">Recent Searches</h3>\n <ul>\n <li\n *ngFor=\"let recentSearch of recentSearches\"\n class=\"suggestions\"\n (mousedown)=\"populateValueRecentSearch(recentSearch, $event)\"\n >\n <mat-icon\n matPrefix\n [className]=\"config.recentSearchIconClass\"\n ></mat-icon>\n\n <span>&nbsp;{{ recentSearch.match }}</span>\n </li>\n </ul>\n </div>\n </ng-container>\n </div>\n</div>\n", styles: [":host ::ng-deep .mat-form-field-wrapper{padding:0}:host ::ng-deep .mat-form-field-wrapper .mat-form-field-prefix{margin-right:12px}.toolbar-search-input{width:86%}.toolbar-search-input ::ng-deep input{margin:0}.toolbar-search-input ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-start{border-color:transparent}.toolbar-search-input ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-end{border:none;border-radius:0}.icomoon.Search,.icomoon.close{height:1rem;width:1rem;font-size:1rem;color:#33333380;padding-bottom:4px}.icomoon.close{cursor:pointer}.toolbar-search-select{width:14%}.toolbar-search-select ::ng-deep .mat-select-arrow{opacity:0}.toolbar-search-select ::ng-deep .mat-select-arrow-wrapper{display:inline-block;width:1px}.toolbar-search-select ::ng-deep .mat-select-value-text{font-size:9px}.toolbar-search-select ::ng-deep .mat-form-field-suffix .mat-icon{width:12px;font-size:14px}.toolbar-search-select ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-start{border-color:transparent;border-radius:0}.toolbar-search-select ::ng-deep .mat-form-field-flex .mat-form-field-outline:first-child .mat-form-field-outline-end{border:none}.toolbar-search-select ::ng-deep .mat-form-field-flex .mat-form-field-infix{-webkit-padding-before:.7em!important}.toolbar-search{width:515px;background-color:#f7f7f7;border-radius:0 0 4px 4px}.toolbar-search ::ng-deep .mat-form-field-appearance-outline .mat-form-field-flex{height:39px;align-items:center!important}.toolbar-search ::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0}.toolbar-search ::ng-deep .mat-form-field-infix{height:auto!important}.search-container{position:relative;width:515px}.search-container .search-popup{padding:0 15px 15px;margin:0;max-height:80vh;overflow-x:hidden;overflow-y:auto;position:absolute;top:100%;left:0px;right:0px;z-index:9999;background-color:#fff;box-shadow:0 5px 4px #0003;border-radius:0 0 4px 4px}.search-container .search-popup hr{border:0;border-top:1px solid #ebebeb;margin:0;position:sticky;top:0;padding:0 0 15px;z-index:1}.search-container .search-popup .search-message{display:inline-block;width:100%;text-align:center;font-size:16px;padding-top:12px}.search-container .search-popup .search-item-info{color:#91263b;text-align:center;font-size:12px;margin-bottom:15px;padding-top:12px}.search-container .search-popup ul{padding:0;margin:0}.search-container .search-popup ul li{list-style:none;font-size:1rem;font-weight:400;line-height:1.5;color:#333}.search-container .search-popup ul li.suggestions{font-size:15px;line-height:36px;padding:0 15px 0 44px;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.search-container .search-popup ul li.suggestions:hover{background-color:#fee8e8}.search-container .search-popup ul li.suggestions svg{margin-right:5px}.search-container .search-popup ul li.suggestions-categorize-false:hover{background-color:#fee8e8}.search-container .search-popup .search-result{padding:10px 0 0;margin:0 -15px}.search-container .search-popup .search-result.no-categorize-result ul{width:100%;padding:0;margin:0 0 10px}.search-container .search-popup .search-result.no-categorize-result ul li{font-size:15px;line-height:36px;padding:0 15px 0 31px;display:flex;align-items:center;cursor:pointer}.search-container .search-popup .search-result.no-categorize-result ul li:hover{background-color:#fee8e8}.search-container .search-popup .search-result.no-categorize-result ul li img{width:18px;margin-right:9px}.search-container .search-popup .suggestions-heading{color:#9c9c9c;font-size:14px;font-weight:400;margin:0 0 10px 17px;display:flex;align-items:center;position:relative}.search-container .search-popup .suggestions-heading .show-more{position:absolute;right:20px;color:#d1d1d1;font-size:12px;cursor:pointer;text-decoration:none}.search-container .search-popup .suggestions-heading .show-more :hover{text-decoration:underline}.search-container .search-popup .suggestions-heading img{width:18px;margin-right:9px}.search-container .search-popup .recent-searches{padding:10px 0 0;margin:0 -15px}.search-container .search-popup .recent-searches ul{display:inline-block;width:100%}.search-container .search-popup .recent-searches ul li.suggestions{display:flex}.search-container .search-popup .recent-searches ul li.suggestions span{width:100%;overflow:hidden;text-overflow:ellipsis}.search-container .search-popup .recent-searches .suggestions{display:flex}.search-container .search-popup .recent-searches .suggestions-heading{margin-left:30px}.search-container .search-popup .recent-searches li.suggestions{padding-left:31px}::ng-deep .search-select.mat-select-panel{margin-top:30px;margin-left:10px}::ng-deep .search-select .mat-option-text{display:contents!important}::ng-deep .toolbar-search .mat-form-field-infix{font-size:14px}::ng-deep .toolbar-search input{line-height:14px}::ng-deep .toolbar-search .mat-form-field-outline:first-child .mat-form-field-outline-start,::ng-deep .toolbar-search .mat-form-field-outline:first-child .mat-form-field-outline-end{background-color:#f1f3f4}::ng-deep .toolbar-search:hover .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-width:1px!important;border-color:#a53159!important}::ng-deep .toolbar-search:hover .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border:1px solid #a53159!important;border-left-style:none!important;border-right-style:none!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-radius:0;border-color:transparent!important;background-color:#a53159!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border-width:1px!important;border-color:#a53159!important;background-color:#a53159!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-select{color:#fff!important}::ng-deep .toolbar-search:hover .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .icomoon.arrow_down{color:#fff}::ng-deep .toolbar-search:focus-within .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-width:2px!important;border-color:#90003b!important}::ng-deep .toolbar-search:focus-within .toolbar-search-input.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border:2px solid #90003b!important;border-left-style:none!important;border-right-style:none!important;border-top-right-radius:0!important;border-bottom-right-radius:0!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-start{border-radius:0;border-color:transparent!important;background-color:#90003b!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-form-field-outline .mat-form-field-outline-end{border-width:2px!important;border-color:#90003b!important;background-color:#90003b!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .mat-select{color:#fff!important}::ng-deep .toolbar-search:focus-within .toolbar-search-select.mat-form-field:not(.mat-form-field-disabled) .icomoon.arrow_down{color:#fff}::ng-deep .toolbar-search .mat-select-arrow{opacity:0}\n"] }]
314
+ }], ctorParameters: function () {
315
+ return [{ type: undefined, decorators: [{
316
+ type: Inject,
317
+ args: [SEARCH_SERVICE_TOKEN]
318
+ }] }, { type: Object, decorators: [{
319
+ type: Inject,
320
+ args: [PLATFORM_ID]
321
+ }] }, { type: i0.ChangeDetectorRef }];
322
+ }, propDecorators: { config: [{
323
+ type: Input
324
+ }], titleTemplate: [{
325
+ type: Input
326
+ }], subtitleTemplate: [{
327
+ type: Input
328
+ }], clicked: [{
329
+ type: Output
330
+ }], searched: [{
331
+ type: Output
332
+ }], searchInputElement: [{
333
+ type: ViewChild,
334
+ args: ['searchInput']
335
+ }] } });
336
+
337
+ // Copyright (c) 2022 Sourcefuse Technologies
338
+ class SearchLibModule {
339
+ }
340
+ SearchLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
341
+ SearchLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, declarations: [SearchComponent], imports: [CommonModule,
342
+ FormsModule,
343
+ HttpClientModule,
344
+ MatSelectModule,
345
+ MatFormFieldModule,
346
+ MatIconModule,
347
+ MatInputModule,
348
+ FlexLayoutModule], exports: [SearchComponent] });
349
+ SearchLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, imports: [[
350
+ CommonModule,
351
+ FormsModule,
352
+ HttpClientModule,
353
+ MatSelectModule,
354
+ MatFormFieldModule,
355
+ MatIconModule,
356
+ MatInputModule,
357
+ FlexLayoutModule,
358
+ ]] });
359
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SearchLibModule, decorators: [{
360
+ type: NgModule,
361
+ args: [{
362
+ declarations: [SearchComponent],
363
+ imports: [
364
+ CommonModule,
365
+ FormsModule,
366
+ HttpClientModule,
367
+ MatSelectModule,
368
+ MatFormFieldModule,
369
+ MatIconModule,
370
+ MatInputModule,
371
+ FlexLayoutModule,
372
+ ],
373
+ exports: [SearchComponent],
374
+ }]
375
+ }] });
376
+
377
+ class Configuration {
378
+ constructor(d) {
379
+ checkForError(d);
380
+ this.displayPropertyName = d.displayPropertyName;
381
+ this.models = d.models;
382
+ /* IRequestParameters - will be given default values before call is made in case undefined/null,
383
+ otherwise there ! is used on which sonar gives code smell */
384
+ this.limit = d.limit;
385
+ this.limitByType = d.limitByType;
386
+ this.order = d.order;
387
+ this.offset = d.offset;
388
+ this.saveInRecents = d.saveInRecents;
389
+ const displayTexts = setDisplayText(d);
390
+ this.noResultMessage = displayTexts.noResultMessage;
391
+ this.placeholder = displayTexts.placeholder;
392
+ this.placeholderFunction = displayTexts.placeholderFunction;
393
+ const searchConfig = setSearchConfig(d);
394
+ this.categorizeResults = searchConfig.categorizeResults;
395
+ this.hideRecentSearch = searchConfig.hideRecentSearch;
396
+ this.hideCategorizeButton = searchConfig.hideCategorizeButton;
397
+ this.saveInRecentsOnlyOnEnter = searchConfig.saveInRecentsOnlyOnEnter;
398
+ this.searchOnlyOnEnter = searchConfig.searchOnlyOnEnter;
399
+ const classes = setIconClasses(d);
400
+ this.searchIconClass = classes.searchIconClass;
401
+ this.crossIconClass = classes.crossIconClass;
402
+ this.dropDownButtonIconClass = classes.dropDownButtonIconClass;
403
+ this.recentSearchIconClass = classes.recentSearchIconClass;
404
+ }
405
+ }
406
+ function checkForError(d) {
407
+ if (d.categorizeResults === false &&
408
+ (d.hideCategorizeButton === false || d.hideCategorizeButton === undefined)) {
409
+ throw new Error('You must provide hideCategorizeButton:true as categorizeResults is false');
410
+ }
411
+ if (d.saveInRecents === false && d.saveInRecentsOnlyOnEnter === true) {
412
+ throw new Error('You must provide saveInRecents:true for saveInRecentsOnlyOnEnter:true');
413
+ }
414
+ }
415
+ function setDisplayText(d) {
416
+ var _a, _b;
417
+ return {
418
+ placeholder: (_a = d.placeholder) !== null && _a !== void 0 ? _a : 'Search',
419
+ noResultMessage: (_b = d.noResultMessage) !== null && _b !== void 0 ? _b : 'No result found',
420
+ placeholderFunction: d.placeholderFunction,
421
+ };
422
+ }
423
+ function setSearchConfig(d) {
424
+ var _a, _b, _c, _d, _e;
425
+ return {
426
+ categorizeResults: (_a = d.categorizeResults) !== null && _a !== void 0 ? _a : true,
427
+ hideRecentSearch: (_b = d.hideRecentSearch) !== null && _b !== void 0 ? _b : false,
428
+ hideCategorizeButton: (_c = d.hideCategorizeButton) !== null && _c !== void 0 ? _c : false,
429
+ saveInRecentsOnlyOnEnter: (_d = d.saveInRecentsOnlyOnEnter) !== null && _d !== void 0 ? _d : false,
430
+ searchOnlyOnEnter: (_e = d.searchOnlyOnEnter) !== null && _e !== void 0 ? _e : false,
431
+ };
432
+ }
433
+ function setIconClasses(d) {
434
+ var _a, _b, _c, _d;
435
+ return {
436
+ searchIconClass: (_a = d.searchIconClass) !== null && _a !== void 0 ? _a : 'icomoon Search',
437
+ crossIconClass: (_b = d.crossIconClass) !== null && _b !== void 0 ? _b : 'icomoon close',
438
+ dropDownButtonIconClass: (_c = d.dropDownButtonIconClass) !== null && _c !== void 0 ? _c : 'icomoon arrow_down',
439
+ recentSearchIconClass: (_d = d.recentSearchIconClass) !== null && _d !== void 0 ? _d : 'icomoon Search',
440
+ };
441
+ }
442
+
443
+ // Copyright (c) 2022 Sourcefuse Technologies
444
+
445
+ /**
446
+ * Generated bundle index. Do not edit.
447
+ */
448
+
449
+ export { Configuration, DEBOUNCE_TIME, DEFAULT_LIMIT, DEFAULT_LIMIT_TYPE, DEFAULT_OFFSET, DEFAULT_ORDER, DEFAULT_SAVE_IN_RECENTS, SEARCH_SERVICE_TOKEN, SearchComponent, SearchLibModule };
450
+ //# sourceMappingURL=sourceloop-search-client.mjs.map