@htmlbricks/hb-searchbar 0.50.0-alpha.9 → 0.60.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.
- package/main.iife.js +55 -54
- package/main.iife.js.map +1 -0
- package/manifest.json +105 -69
- package/package.json +6 -2
- package/types/webcomponent.type.d.json +60 -28
- package/types/webcomponent.type.d.ts +8 -7
- package/types/webcomponent_events.type.d.json +22 -4
package/manifest.json
CHANGED
|
@@ -7,13 +7,30 @@
|
|
|
7
7
|
"Events": {
|
|
8
8
|
"additionalProperties": false,
|
|
9
9
|
"properties": {
|
|
10
|
-
"search
|
|
11
|
-
"
|
|
12
|
-
"
|
|
10
|
+
"search": {
|
|
11
|
+
"additionalProperties": false,
|
|
12
|
+
"properties": {
|
|
13
|
+
"by": {
|
|
14
|
+
"enum": [
|
|
15
|
+
"button",
|
|
16
|
+
"input",
|
|
17
|
+
"searchlist"
|
|
18
|
+
],
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"input": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"input",
|
|
27
|
+
"by"
|
|
28
|
+
],
|
|
29
|
+
"type": "object"
|
|
13
30
|
}
|
|
14
31
|
},
|
|
15
32
|
"required": [
|
|
16
|
-
"search
|
|
33
|
+
"search"
|
|
17
34
|
],
|
|
18
35
|
"type": "object"
|
|
19
36
|
}
|
|
@@ -26,43 +43,74 @@
|
|
|
26
43
|
"Component": {
|
|
27
44
|
"additionalProperties": false,
|
|
28
45
|
"properties": {
|
|
29
|
-
"action": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
},
|
|
32
|
-
"actionquerykey": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
},
|
|
35
46
|
"id": {
|
|
36
47
|
"type": "string"
|
|
37
48
|
},
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"GET",
|
|
41
|
-
"POST"
|
|
42
|
-
],
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
"resultitemlinkkey": {
|
|
46
|
-
"type": "string"
|
|
47
|
-
},
|
|
48
|
-
"resultitemspath": {
|
|
49
|
-
"type": "string"
|
|
49
|
+
"minlength": {
|
|
50
|
+
"type": "number"
|
|
50
51
|
},
|
|
51
|
-
"
|
|
52
|
-
"
|
|
52
|
+
"searchlist": {
|
|
53
|
+
"items": {
|
|
54
|
+
"additionalProperties": false,
|
|
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"
|
|
107
|
+
},
|
|
108
|
+
"type": "array"
|
|
53
109
|
},
|
|
54
110
|
"style": {
|
|
55
111
|
"type": "string"
|
|
56
112
|
}
|
|
57
113
|
},
|
|
58
|
-
"required": [
|
|
59
|
-
"action",
|
|
60
|
-
"method",
|
|
61
|
-
"actionquerykey",
|
|
62
|
-
"resultitemspath",
|
|
63
|
-
"resultitemtitlekey",
|
|
64
|
-
"resultitemlinkkey"
|
|
65
|
-
],
|
|
66
114
|
"type": "object"
|
|
67
115
|
}
|
|
68
116
|
}
|
|
@@ -70,42 +118,18 @@
|
|
|
70
118
|
},
|
|
71
119
|
"description": "",
|
|
72
120
|
"storybookArgs": {
|
|
73
|
-
"
|
|
121
|
+
"minlength": {
|
|
74
122
|
"control": {
|
|
75
|
-
"type": "
|
|
123
|
+
"type": "number"
|
|
76
124
|
}
|
|
77
125
|
},
|
|
78
|
-
"
|
|
126
|
+
"searchlist": {
|
|
79
127
|
"control": {
|
|
80
|
-
"type": "
|
|
81
|
-
},
|
|
82
|
-
"options": [
|
|
83
|
-
"GET",
|
|
84
|
-
"POST"
|
|
85
|
-
]
|
|
86
|
-
},
|
|
87
|
-
"actionquerykey": {
|
|
88
|
-
"control": {
|
|
89
|
-
"type": "text"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"resultitemspath": {
|
|
93
|
-
"control": {
|
|
94
|
-
"type": "text"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"resultitemtitlekey": {
|
|
98
|
-
"control": {
|
|
99
|
-
"type": "text"
|
|
128
|
+
"type": "object"
|
|
100
129
|
}
|
|
101
130
|
},
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"type": "text"
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
"search-result-items": {
|
|
108
|
-
"action": "search-result-items"
|
|
131
|
+
"search": {
|
|
132
|
+
"action": "search"
|
|
109
133
|
}
|
|
110
134
|
},
|
|
111
135
|
"styleSetup": {
|
|
@@ -118,13 +142,25 @@
|
|
|
118
142
|
"examples": [
|
|
119
143
|
{
|
|
120
144
|
"name": "default",
|
|
145
|
+
"data": {}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "withSearchlist",
|
|
121
149
|
"data": {
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
150
|
+
"searchlist": [
|
|
151
|
+
{
|
|
152
|
+
"id": "1",
|
|
153
|
+
"title": "aaa"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "2",
|
|
157
|
+
"title": "bbb"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"id": "3",
|
|
161
|
+
"title": "ccc"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
128
164
|
}
|
|
129
165
|
}
|
|
130
166
|
],
|
|
@@ -146,5 +182,5 @@
|
|
|
146
182
|
"size": {},
|
|
147
183
|
"iifePath": "main.iife.js",
|
|
148
184
|
"repoName": "@htmlbricks/hb-searchbar",
|
|
149
|
-
"version": "0.
|
|
185
|
+
"version": "0.60.1"
|
|
150
186
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-searchbar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.1",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "",
|
|
6
6
|
"licenses": [
|
|
@@ -12,5 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"main": "main.iife.js",
|
|
15
|
-
"dependencies":
|
|
15
|
+
"dependencies": {},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"private": false
|
|
16
20
|
}
|
|
@@ -5,44 +5,76 @@
|
|
|
5
5
|
"Component": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
-
"action": {
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"actionquerykey": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
8
|
"id": {
|
|
15
9
|
"type": "string"
|
|
16
10
|
},
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"GET",
|
|
20
|
-
"POST"
|
|
21
|
-
],
|
|
22
|
-
"type": "string"
|
|
23
|
-
},
|
|
24
|
-
"resultitemlinkkey": {
|
|
25
|
-
"type": "string"
|
|
11
|
+
"minlength": {
|
|
12
|
+
"type": "number"
|
|
26
13
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
14
|
+
"searchlist": {
|
|
15
|
+
"items": {
|
|
16
|
+
"additionalProperties": false,
|
|
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"
|
|
69
|
+
},
|
|
70
|
+
"type": "array"
|
|
32
71
|
},
|
|
33
72
|
"style": {
|
|
34
73
|
"type": "string"
|
|
35
74
|
}
|
|
36
75
|
},
|
|
37
|
-
"required": [
|
|
38
|
-
"action",
|
|
39
|
-
"method",
|
|
40
|
-
"actionquerykey",
|
|
41
|
-
"resultitemspath",
|
|
42
|
-
"resultitemtitlekey",
|
|
43
|
-
"resultitemlinkkey"
|
|
44
|
-
],
|
|
45
76
|
"type": "object"
|
|
46
77
|
}
|
|
47
78
|
}
|
|
48
79
|
}
|
|
80
|
+
|
|
@@ -2,14 +2,15 @@ export type Component = {
|
|
|
2
2
|
id?: string;
|
|
3
3
|
style?: string;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
method: "GET" | "POST";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
// server_uri: string;
|
|
6
|
+
// method: "GET" | "POST";
|
|
7
|
+
|
|
8
|
+
// resultitemtitlekey: string;
|
|
9
|
+
// resultitemlinkkey: string;
|
|
10
|
+
minlength?: number;
|
|
11
|
+
searchlist?: { title: string; url?: string; id: string; icon?: string; tags?: { text?: string, color?: string, icon?: string }[]; badge?: { text?: string, color?: string, icon?: string } }[];
|
|
11
12
|
};
|
|
12
13
|
|
|
13
14
|
export type Events = {
|
|
14
|
-
"search
|
|
15
|
+
"search": { input: string; by: "button" | "input" | "searchlist" };
|
|
15
16
|
};
|
|
@@ -5,15 +5,33 @@
|
|
|
5
5
|
"Events": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
-
"search
|
|
9
|
-
"
|
|
10
|
-
"
|
|
8
|
+
"search": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"by": {
|
|
12
|
+
"enum": [
|
|
13
|
+
"button",
|
|
14
|
+
"input",
|
|
15
|
+
"searchlist"
|
|
16
|
+
],
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
"input": {
|
|
20
|
+
"type": "string"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"required": [
|
|
24
|
+
"input",
|
|
25
|
+
"by"
|
|
26
|
+
],
|
|
27
|
+
"type": "object"
|
|
11
28
|
}
|
|
12
29
|
},
|
|
13
30
|
"required": [
|
|
14
|
-
"search
|
|
31
|
+
"search"
|
|
15
32
|
],
|
|
16
33
|
"type": "object"
|
|
17
34
|
}
|
|
18
35
|
}
|
|
19
36
|
}
|
|
37
|
+
|