@htmlbricks/hb-searchbar 0.60.23 → 0.60.25

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.
package/manifest.json CHANGED
@@ -57,6 +57,9 @@
57
57
  "id": {
58
58
  "type": "string"
59
59
  },
60
+ "input_info": {
61
+ "$ref": "#/definitions/TSearchListItem"
62
+ },
60
63
  "minlength": {
61
64
  "type": "number"
62
65
  },
@@ -90,6 +93,9 @@
90
93
  "id": {
91
94
  "type": "string"
92
95
  },
96
+ "number_of_results": {
97
+ "type": "number"
98
+ },
93
99
  "tags": {
94
100
  "items": {
95
101
  "$ref": "#/definitions/TSearchListItemTag"
@@ -168,13 +174,27 @@
168
174
  "type": "text"
169
175
  }
170
176
  },
177
+ "input_info": {
178
+ "control": {
179
+ "type": "object"
180
+ }
181
+ },
171
182
  "search": {
172
183
  "action": "search"
173
184
  }
174
185
  },
175
186
  "styleSetup": {
176
187
  "vars": [],
177
- "parts": []
188
+ "parts": [
189
+ {
190
+ "name": "dropdown-menu",
191
+ "description": "The dropdown menu"
192
+ },
193
+ {
194
+ "name": "search-input",
195
+ "description": "The search input"
196
+ }
197
+ ]
178
198
  },
179
199
  "contributors": [],
180
200
  "htmlSlots": [],
@@ -207,86 +227,111 @@
207
227
  {
208
228
  "name": "with20items",
209
229
  "data": {
230
+ "input_info": {
231
+ "id": "1",
232
+ "text": "woman",
233
+ "number_of_results": 200000000
234
+ },
210
235
  "searchlist": [
211
236
  {
212
237
  "id": "1",
213
- "text": "looking"
238
+ "text": "looking",
239
+ "number_of_results": 200000000
214
240
  },
215
241
  {
216
242
  "id": "2",
217
- "text": "good"
243
+ "text": "good",
244
+ "number_of_results": 200000000
218
245
  },
219
246
  {
220
247
  "id": "3",
221
- "text": "woman"
248
+ "text": "woman",
249
+ "number_of_results": 200000000
222
250
  },
223
251
  {
224
252
  "id": "4",
225
- "text": "man"
253
+ "text": "man",
254
+ "number_of_results": 200000000
226
255
  },
227
256
  {
228
257
  "id": "5",
229
- "text": "woman"
258
+ "text": "woman",
259
+ "number_of_results": 200000000
230
260
  },
231
261
  {
232
262
  "id": "6",
233
- "text": "man"
263
+ "text": "man",
264
+ "number_of_results": 200000000
234
265
  },
235
266
  {
236
267
  "id": "7",
237
- "text": "woman"
268
+ "text": "woman",
269
+ "number_of_results": 200000000
238
270
  },
239
271
  {
240
272
  "id": "8",
241
- "text": "man"
273
+ "text": "man",
274
+ "number_of_results": 200000000
242
275
  },
243
276
  {
244
277
  "id": "9",
245
- "text": "woman"
278
+ "text": "woman",
279
+ "number_of_results": 200000000
246
280
  },
247
281
  {
248
282
  "id": "10",
249
- "text": "man"
283
+ "text": "man",
284
+ "number_of_results": 200000000
250
285
  },
251
286
  {
252
287
  "id": "11",
253
- "text": "woman"
288
+ "text": "woman",
289
+ "number_of_results": 200000000
254
290
  },
255
291
  {
256
292
  "id": "12",
257
- "text": "man"
293
+ "text": "man",
294
+ "number_of_results": 200000000
258
295
  },
259
296
  {
260
297
  "id": "13",
261
- "text": "woman"
298
+ "text": "woman",
299
+ "number_of_results": 200000000
262
300
  },
263
301
  {
264
302
  "id": "14",
265
- "text": "man"
303
+ "text": "man",
304
+ "number_of_results": 200000000
266
305
  },
267
306
  {
268
307
  "id": "15",
269
- "text": "woman"
308
+ "text": "woman",
309
+ "number_of_results": 200000000
270
310
  },
271
311
  {
272
312
  "id": "16",
273
- "text": "man"
313
+ "text": "man",
314
+ "number_of_results": 200000000
274
315
  },
275
316
  {
276
317
  "id": "17",
277
- "text": "woman"
318
+ "text": "woman",
319
+ "number_of_results": 200000000
278
320
  },
279
321
  {
280
322
  "id": "18",
281
- "text": "man"
323
+ "text": "man",
324
+ "number_of_results": 200000000
282
325
  },
283
326
  {
284
327
  "id": "19",
285
- "text": "woman"
328
+ "text": "woman",
329
+ "number_of_results": 200000000
286
330
  },
287
331
  {
288
332
  "id": "20",
289
- "text": "man"
333
+ "text": "man",
334
+ "number_of_results": 200000000
290
335
  }
291
336
  ]
292
337
  }
@@ -641,5 +686,5 @@
641
686
  "size": {},
642
687
  "iifePath": "main.iife.js",
643
688
  "repoName": "@htmlbricks/hb-searchbar",
644
- "version": "0.60.23"
689
+ "version": "0.60.25"
645
690
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-searchbar",
3
- "version": "0.60.23",
3
+ "version": "0.60.25",
4
4
  "contributors": [],
5
5
  "description": "",
6
6
  "licenses": [
@@ -19,6 +19,9 @@
19
19
  "id": {
20
20
  "type": "string"
21
21
  },
22
+ "input_info": {
23
+ "$ref": "#/definitions/TSearchListItem"
24
+ },
22
25
  "minlength": {
23
26
  "type": "number"
24
27
  },
@@ -52,6 +55,9 @@
52
55
  "id": {
53
56
  "type": "string"
54
57
  },
58
+ "number_of_results": {
59
+ "type": "number"
60
+ },
55
61
  "tags": {
56
62
  "items": {
57
63
  "$ref": "#/definitions/TSearchListItemTag"
@@ -2,7 +2,7 @@ export type TSearchListItemTag = { text?: string, color?: string, icon?: string
2
2
  export type TSearchListItemBadge = { text?: string, color?: string, icon?: string };
3
3
 
4
4
 
5
- export type TSearchListItem = { fixed?: boolean, text: string; url?: string; id: string; icon?: string; tags?: TSearchListItemTag[]; badge?: TSearchListItemBadge };
5
+ export type TSearchListItem = { number_of_results?: number, fixed?: boolean, text: string; url?: string; id: string; icon?: string; tags?: TSearchListItemTag[]; badge?: TSearchListItemBadge };
6
6
 
7
7
  export type Component = {
8
8
  id?: string;
@@ -17,6 +17,7 @@ export type Component = {
17
17
  searchlabel?: string;
18
18
  minlength?: number;
19
19
  searchlist?: TSearchListItem[];
20
+ input_info?: TSearchListItem
20
21
  };
21
22
 
22
23
  export type Events = {