@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/manifest.json CHANGED
@@ -7,13 +7,30 @@
7
7
  "Events": {
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "search-result-items": {
11
- "items": {},
12
- "type": "array"
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-result-items"
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
- "method": {
39
- "enum": [
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
- "resultitemtitlekey": {
52
- "type": "string"
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
- "action": {
121
+ "minlength": {
74
122
  "control": {
75
- "type": "text"
123
+ "type": "number"
76
124
  }
77
125
  },
78
- "method": {
126
+ "searchlist": {
79
127
  "control": {
80
- "type": "select"
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
- "resultitemlinkkey": {
103
- "control": {
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
- "action": "",
123
- "method": "GET",
124
- "actionquerykey": "",
125
- "resultitemspath": "",
126
- "resultitemtitlekey": "",
127
- "resultitemlinkkey": ""
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.50.0-alpha.009"
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.50.0-alpha.009",
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
- "method": {
18
- "enum": [
19
- "GET",
20
- "POST"
21
- ],
22
- "type": "string"
23
- },
24
- "resultitemlinkkey": {
25
- "type": "string"
11
+ "minlength": {
12
+ "type": "number"
26
13
  },
27
- "resultitemspath": {
28
- "type": "string"
29
- },
30
- "resultitemtitlekey": {
31
- "type": "string"
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
- action: string;
6
- method: "GET" | "POST";
7
- "actionquerykey": string;
8
- "resultitemspath": string;
9
- "resultitemtitlekey": string;
10
- "resultitemlinkkey": string;
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-result-items": any[];
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-result-items": {
9
- "items": {},
10
- "type": "array"
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-result-items"
31
+ "search"
15
32
  ],
16
33
  "type": "object"
17
34
  }
18
35
  }
19
36
  }
37
+