@htmlbricks/hb-searchbar 0.60.4 → 0.60.5
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 +152 -54
- package/main.iife.js.map +1 -1
- package/manifest.json +78 -57
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +68 -53
- package/types/webcomponent.type.d.ts +8 -1
package/manifest.json
CHANGED
|
@@ -49,61 +49,12 @@
|
|
|
49
49
|
"minlength": {
|
|
50
50
|
"type": "number"
|
|
51
51
|
},
|
|
52
|
+
"searchlabel": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
52
55
|
"searchlist": {
|
|
53
56
|
"items": {
|
|
54
|
-
"
|
|
55
|
-
"properties": {
|
|
56
|
-
"badge": {
|
|
57
|
-
"additionalProperties": false,
|
|
58
|
-
"properties": {
|
|
59
|
-
"color": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
},
|
|
62
|
-
"icon": {
|
|
63
|
-
"type": "string"
|
|
64
|
-
},
|
|
65
|
-
"text": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"type": "object"
|
|
70
|
-
},
|
|
71
|
-
"icon": {
|
|
72
|
-
"type": "string"
|
|
73
|
-
},
|
|
74
|
-
"id": {
|
|
75
|
-
"type": "string"
|
|
76
|
-
},
|
|
77
|
-
"tags": {
|
|
78
|
-
"items": {
|
|
79
|
-
"additionalProperties": false,
|
|
80
|
-
"properties": {
|
|
81
|
-
"color": {
|
|
82
|
-
"type": "string"
|
|
83
|
-
},
|
|
84
|
-
"icon": {
|
|
85
|
-
"type": "string"
|
|
86
|
-
},
|
|
87
|
-
"text": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"type": "object"
|
|
92
|
-
},
|
|
93
|
-
"type": "array"
|
|
94
|
-
},
|
|
95
|
-
"title": {
|
|
96
|
-
"type": "string"
|
|
97
|
-
},
|
|
98
|
-
"url": {
|
|
99
|
-
"type": "string"
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
"required": [
|
|
103
|
-
"title",
|
|
104
|
-
"id"
|
|
105
|
-
],
|
|
106
|
-
"type": "object"
|
|
57
|
+
"$ref": "#/definitions/TSearchListItem"
|
|
107
58
|
},
|
|
108
59
|
"type": "array"
|
|
109
60
|
},
|
|
@@ -112,6 +63,70 @@
|
|
|
112
63
|
}
|
|
113
64
|
},
|
|
114
65
|
"type": "object"
|
|
66
|
+
},
|
|
67
|
+
"TSearchListItem": {
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"properties": {
|
|
70
|
+
"badge": {
|
|
71
|
+
"$ref": "#/definitions/TSearchListItemBadge"
|
|
72
|
+
},
|
|
73
|
+
"fixed": {
|
|
74
|
+
"type": "boolean"
|
|
75
|
+
},
|
|
76
|
+
"icon": {
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
"id": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"tags": {
|
|
83
|
+
"items": {
|
|
84
|
+
"$ref": "#/definitions/TSearchListItemTag"
|
|
85
|
+
},
|
|
86
|
+
"type": "array"
|
|
87
|
+
},
|
|
88
|
+
"text": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"url": {
|
|
92
|
+
"type": "string"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"required": [
|
|
96
|
+
"text",
|
|
97
|
+
"id"
|
|
98
|
+
],
|
|
99
|
+
"type": "object"
|
|
100
|
+
},
|
|
101
|
+
"TSearchListItemBadge": {
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"properties": {
|
|
104
|
+
"color": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"icon": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"text": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"type": "object"
|
|
115
|
+
},
|
|
116
|
+
"TSearchListItemTag": {
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"color": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"icon": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"text": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"type": "object"
|
|
115
130
|
}
|
|
116
131
|
}
|
|
117
132
|
}
|
|
@@ -128,6 +143,11 @@
|
|
|
128
143
|
"type": "object"
|
|
129
144
|
}
|
|
130
145
|
},
|
|
146
|
+
"searchlabel": {
|
|
147
|
+
"control": {
|
|
148
|
+
"type": "text"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
131
151
|
"search": {
|
|
132
152
|
"action": "search"
|
|
133
153
|
}
|
|
@@ -147,18 +167,19 @@
|
|
|
147
167
|
{
|
|
148
168
|
"name": "withSearchlist",
|
|
149
169
|
"data": {
|
|
170
|
+
"searchlabel": "RESearch",
|
|
150
171
|
"searchlist": [
|
|
151
172
|
{
|
|
152
173
|
"id": "1",
|
|
153
|
-
"
|
|
174
|
+
"text": "looking"
|
|
154
175
|
},
|
|
155
176
|
{
|
|
156
177
|
"id": "2",
|
|
157
|
-
"
|
|
178
|
+
"text": "good"
|
|
158
179
|
},
|
|
159
180
|
{
|
|
160
181
|
"id": "3",
|
|
161
|
-
"
|
|
182
|
+
"text": "woman"
|
|
162
183
|
}
|
|
163
184
|
]
|
|
164
185
|
}
|
|
@@ -182,5 +203,5 @@
|
|
|
182
203
|
"size": {},
|
|
183
204
|
"iifePath": "main.iife.js",
|
|
184
205
|
"repoName": "@htmlbricks/hb-searchbar",
|
|
185
|
-
"version": "0.60.
|
|
206
|
+
"version": "0.60.5"
|
|
186
207
|
}
|
package/package.json
CHANGED
|
@@ -11,61 +11,12 @@
|
|
|
11
11
|
"minlength": {
|
|
12
12
|
"type": "number"
|
|
13
13
|
},
|
|
14
|
+
"searchlabel": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
14
17
|
"searchlist": {
|
|
15
18
|
"items": {
|
|
16
|
-
"
|
|
17
|
-
"properties": {
|
|
18
|
-
"badge": {
|
|
19
|
-
"additionalProperties": false,
|
|
20
|
-
"properties": {
|
|
21
|
-
"color": {
|
|
22
|
-
"type": "string"
|
|
23
|
-
},
|
|
24
|
-
"icon": {
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"text": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"type": "object"
|
|
32
|
-
},
|
|
33
|
-
"icon": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"id": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
},
|
|
39
|
-
"tags": {
|
|
40
|
-
"items": {
|
|
41
|
-
"additionalProperties": false,
|
|
42
|
-
"properties": {
|
|
43
|
-
"color": {
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
|
-
"icon": {
|
|
47
|
-
"type": "string"
|
|
48
|
-
},
|
|
49
|
-
"text": {
|
|
50
|
-
"type": "string"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"type": "object"
|
|
54
|
-
},
|
|
55
|
-
"type": "array"
|
|
56
|
-
},
|
|
57
|
-
"title": {
|
|
58
|
-
"type": "string"
|
|
59
|
-
},
|
|
60
|
-
"url": {
|
|
61
|
-
"type": "string"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"required": [
|
|
65
|
-
"title",
|
|
66
|
-
"id"
|
|
67
|
-
],
|
|
68
|
-
"type": "object"
|
|
19
|
+
"$ref": "#/definitions/TSearchListItem"
|
|
69
20
|
},
|
|
70
21
|
"type": "array"
|
|
71
22
|
},
|
|
@@ -74,6 +25,70 @@
|
|
|
74
25
|
}
|
|
75
26
|
},
|
|
76
27
|
"type": "object"
|
|
28
|
+
},
|
|
29
|
+
"TSearchListItem": {
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"badge": {
|
|
33
|
+
"$ref": "#/definitions/TSearchListItemBadge"
|
|
34
|
+
},
|
|
35
|
+
"fixed": {
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"icon": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"id": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"tags": {
|
|
45
|
+
"items": {
|
|
46
|
+
"$ref": "#/definitions/TSearchListItemTag"
|
|
47
|
+
},
|
|
48
|
+
"type": "array"
|
|
49
|
+
},
|
|
50
|
+
"text": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"url": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": [
|
|
58
|
+
"text",
|
|
59
|
+
"id"
|
|
60
|
+
],
|
|
61
|
+
"type": "object"
|
|
62
|
+
},
|
|
63
|
+
"TSearchListItemBadge": {
|
|
64
|
+
"additionalProperties": false,
|
|
65
|
+
"properties": {
|
|
66
|
+
"color": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"icon": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"text": {
|
|
73
|
+
"type": "string"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"type": "object"
|
|
77
|
+
},
|
|
78
|
+
"TSearchListItemTag": {
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"properties": {
|
|
81
|
+
"color": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"icon": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"text": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"type": "object"
|
|
77
92
|
}
|
|
78
93
|
}
|
|
79
94
|
}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
export type TSearchListItemTag = { text?: string, color?: string, icon?: string };
|
|
2
|
+
export type TSearchListItemBadge = { text?: string, color?: string, icon?: string };
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export type TSearchListItem = { fixed?: boolean, text: string; url?: string; id: string; icon?: string; tags?: TSearchListItemTag[]; badge?: TSearchListItemBadge };
|
|
6
|
+
|
|
1
7
|
export type Component = {
|
|
2
8
|
id?: string;
|
|
3
9
|
style?: string;
|
|
@@ -7,8 +13,9 @@ export type Component = {
|
|
|
7
13
|
|
|
8
14
|
// resultitemtitlekey: string;
|
|
9
15
|
// resultitemlinkkey: string;
|
|
16
|
+
searchlabel?: string;
|
|
10
17
|
minlength?: number;
|
|
11
|
-
searchlist?:
|
|
18
|
+
searchlist?: TSearchListItem[];
|
|
12
19
|
};
|
|
13
20
|
|
|
14
21
|
export type Events = {
|