@htmlbricks/hb-searchbar 0.60.24 → 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/main.iife.js +465 -240
- package/main.iife.js.map +1 -1
- package/manifest.json +57 -21
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +6 -0
- package/types/webcomponent.type.d.ts +2 -1
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,6 +174,11 @@
|
|
|
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
|
}
|
|
@@ -216,86 +227,111 @@
|
|
|
216
227
|
{
|
|
217
228
|
"name": "with20items",
|
|
218
229
|
"data": {
|
|
230
|
+
"input_info": {
|
|
231
|
+
"id": "1",
|
|
232
|
+
"text": "woman",
|
|
233
|
+
"number_of_results": 200000000
|
|
234
|
+
},
|
|
219
235
|
"searchlist": [
|
|
220
236
|
{
|
|
221
237
|
"id": "1",
|
|
222
|
-
"text": "looking"
|
|
238
|
+
"text": "looking",
|
|
239
|
+
"number_of_results": 200000000
|
|
223
240
|
},
|
|
224
241
|
{
|
|
225
242
|
"id": "2",
|
|
226
|
-
"text": "good"
|
|
243
|
+
"text": "good",
|
|
244
|
+
"number_of_results": 200000000
|
|
227
245
|
},
|
|
228
246
|
{
|
|
229
247
|
"id": "3",
|
|
230
|
-
"text": "woman"
|
|
248
|
+
"text": "woman",
|
|
249
|
+
"number_of_results": 200000000
|
|
231
250
|
},
|
|
232
251
|
{
|
|
233
252
|
"id": "4",
|
|
234
|
-
"text": "man"
|
|
253
|
+
"text": "man",
|
|
254
|
+
"number_of_results": 200000000
|
|
235
255
|
},
|
|
236
256
|
{
|
|
237
257
|
"id": "5",
|
|
238
|
-
"text": "woman"
|
|
258
|
+
"text": "woman",
|
|
259
|
+
"number_of_results": 200000000
|
|
239
260
|
},
|
|
240
261
|
{
|
|
241
262
|
"id": "6",
|
|
242
|
-
"text": "man"
|
|
263
|
+
"text": "man",
|
|
264
|
+
"number_of_results": 200000000
|
|
243
265
|
},
|
|
244
266
|
{
|
|
245
267
|
"id": "7",
|
|
246
|
-
"text": "woman"
|
|
268
|
+
"text": "woman",
|
|
269
|
+
"number_of_results": 200000000
|
|
247
270
|
},
|
|
248
271
|
{
|
|
249
272
|
"id": "8",
|
|
250
|
-
"text": "man"
|
|
273
|
+
"text": "man",
|
|
274
|
+
"number_of_results": 200000000
|
|
251
275
|
},
|
|
252
276
|
{
|
|
253
277
|
"id": "9",
|
|
254
|
-
"text": "woman"
|
|
278
|
+
"text": "woman",
|
|
279
|
+
"number_of_results": 200000000
|
|
255
280
|
},
|
|
256
281
|
{
|
|
257
282
|
"id": "10",
|
|
258
|
-
"text": "man"
|
|
283
|
+
"text": "man",
|
|
284
|
+
"number_of_results": 200000000
|
|
259
285
|
},
|
|
260
286
|
{
|
|
261
287
|
"id": "11",
|
|
262
|
-
"text": "woman"
|
|
288
|
+
"text": "woman",
|
|
289
|
+
"number_of_results": 200000000
|
|
263
290
|
},
|
|
264
291
|
{
|
|
265
292
|
"id": "12",
|
|
266
|
-
"text": "man"
|
|
293
|
+
"text": "man",
|
|
294
|
+
"number_of_results": 200000000
|
|
267
295
|
},
|
|
268
296
|
{
|
|
269
297
|
"id": "13",
|
|
270
|
-
"text": "woman"
|
|
298
|
+
"text": "woman",
|
|
299
|
+
"number_of_results": 200000000
|
|
271
300
|
},
|
|
272
301
|
{
|
|
273
302
|
"id": "14",
|
|
274
|
-
"text": "man"
|
|
303
|
+
"text": "man",
|
|
304
|
+
"number_of_results": 200000000
|
|
275
305
|
},
|
|
276
306
|
{
|
|
277
307
|
"id": "15",
|
|
278
|
-
"text": "woman"
|
|
308
|
+
"text": "woman",
|
|
309
|
+
"number_of_results": 200000000
|
|
279
310
|
},
|
|
280
311
|
{
|
|
281
312
|
"id": "16",
|
|
282
|
-
"text": "man"
|
|
313
|
+
"text": "man",
|
|
314
|
+
"number_of_results": 200000000
|
|
283
315
|
},
|
|
284
316
|
{
|
|
285
317
|
"id": "17",
|
|
286
|
-
"text": "woman"
|
|
318
|
+
"text": "woman",
|
|
319
|
+
"number_of_results": 200000000
|
|
287
320
|
},
|
|
288
321
|
{
|
|
289
322
|
"id": "18",
|
|
290
|
-
"text": "man"
|
|
323
|
+
"text": "man",
|
|
324
|
+
"number_of_results": 200000000
|
|
291
325
|
},
|
|
292
326
|
{
|
|
293
327
|
"id": "19",
|
|
294
|
-
"text": "woman"
|
|
328
|
+
"text": "woman",
|
|
329
|
+
"number_of_results": 200000000
|
|
295
330
|
},
|
|
296
331
|
{
|
|
297
332
|
"id": "20",
|
|
298
|
-
"text": "man"
|
|
333
|
+
"text": "man",
|
|
334
|
+
"number_of_results": 200000000
|
|
299
335
|
}
|
|
300
336
|
]
|
|
301
337
|
}
|
|
@@ -650,5 +686,5 @@
|
|
|
650
686
|
"size": {},
|
|
651
687
|
"iifePath": "main.iife.js",
|
|
652
688
|
"repoName": "@htmlbricks/hb-searchbar",
|
|
653
|
-
"version": "0.60.
|
|
689
|
+
"version": "0.60.25"
|
|
654
690
|
}
|
package/package.json
CHANGED
|
@@ -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 = {
|