@almadar/std 13.0.5 → 13.0.6
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/behaviors/registry/core/atoms/std-browse.orb +57 -6
- package/behaviors/registry/core/atoms/std-filter.orb +52 -29
- package/behaviors/registry/core/atoms/std-pagination.orb +41 -18
- package/behaviors/registry/core/atoms/std-search.orb +54 -37
- package/behaviors/registry/core/molecules/std-filtered-list.orb +48 -22
- package/dist/behaviors/registry/core/atoms/std-browse.orb +57 -6
- package/dist/behaviors/registry/core/atoms/std-filter.orb +52 -29
- package/dist/behaviors/registry/core/atoms/std-pagination.orb +41 -18
- package/dist/behaviors/registry/core/atoms/std-search.orb +54 -37
- package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +48 -22
- package/package.json +1 -1
|
@@ -43,6 +43,16 @@
|
|
|
43
43
|
"category": "interaction",
|
|
44
44
|
"linkedEntity": "SearchResult",
|
|
45
45
|
"emits": [
|
|
46
|
+
{
|
|
47
|
+
"event": "SEARCH",
|
|
48
|
+
"payloadSchema": [
|
|
49
|
+
{
|
|
50
|
+
"name": "query",
|
|
51
|
+
"type": "string",
|
|
52
|
+
"required": true
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
46
56
|
{
|
|
47
57
|
"event": "SearchResultLoaded",
|
|
48
58
|
"description": "Fired when SearchResult collection finishes loading",
|
|
@@ -151,9 +161,9 @@
|
|
|
151
161
|
"render-ui",
|
|
152
162
|
"main",
|
|
153
163
|
{
|
|
154
|
-
"event": "@config.event",
|
|
155
164
|
"placeholder": "@config.placeholder",
|
|
156
|
-
"type": "search-input"
|
|
165
|
+
"type": "search-input",
|
|
166
|
+
"event": "@config.event"
|
|
157
167
|
}
|
|
158
168
|
]
|
|
159
169
|
]
|
|
@@ -163,13 +173,20 @@
|
|
|
163
173
|
"to": "loading",
|
|
164
174
|
"event": "SEARCH",
|
|
165
175
|
"effects": [
|
|
176
|
+
[
|
|
177
|
+
"emit",
|
|
178
|
+
"SEARCH",
|
|
179
|
+
{
|
|
180
|
+
"query": "@payload.query"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
166
183
|
[
|
|
167
184
|
"fetch",
|
|
168
185
|
"SearchResult",
|
|
169
186
|
{
|
|
170
187
|
"emit": {
|
|
171
|
-
"
|
|
172
|
-
"
|
|
188
|
+
"failure": "SearchResultLoadFailed",
|
|
189
|
+
"success": "SearchResultLoaded"
|
|
173
190
|
}
|
|
174
191
|
}
|
|
175
192
|
],
|
|
@@ -177,21 +194,21 @@
|
|
|
177
194
|
"render-ui",
|
|
178
195
|
"main",
|
|
179
196
|
{
|
|
197
|
+
"align": "center",
|
|
180
198
|
"children": [
|
|
181
199
|
{
|
|
200
|
+
"placeholder": "@config.placeholder",
|
|
182
201
|
"type": "search-input",
|
|
183
|
-
"event": "@config.event"
|
|
184
|
-
"placeholder": "@config.placeholder"
|
|
202
|
+
"event": "@config.event"
|
|
185
203
|
},
|
|
186
204
|
{
|
|
187
|
-
"
|
|
188
|
-
"
|
|
205
|
+
"type": "spinner",
|
|
206
|
+
"size": "sm"
|
|
189
207
|
}
|
|
190
208
|
],
|
|
191
|
-
"type": "stack",
|
|
192
|
-
"direction": "horizontal",
|
|
193
209
|
"gap": "sm",
|
|
194
|
-
"
|
|
210
|
+
"type": "stack",
|
|
211
|
+
"direction": "horizontal"
|
|
195
212
|
}
|
|
196
213
|
]
|
|
197
214
|
]
|
|
@@ -205,8 +222,8 @@
|
|
|
205
222
|
"render-ui",
|
|
206
223
|
"main",
|
|
207
224
|
{
|
|
208
|
-
"event": "@config.event",
|
|
209
225
|
"placeholder": "@config.placeholder",
|
|
226
|
+
"event": "@config.event",
|
|
210
227
|
"type": "search-input"
|
|
211
228
|
}
|
|
212
229
|
]
|
|
@@ -223,20 +240,20 @@
|
|
|
223
240
|
{
|
|
224
241
|
"gap": "xs",
|
|
225
242
|
"direction": "vertical",
|
|
226
|
-
"type": "stack",
|
|
227
243
|
"children": [
|
|
228
244
|
{
|
|
229
|
-
"event": "@config.event",
|
|
230
245
|
"placeholder": "@config.placeholder",
|
|
246
|
+
"event": "@config.event",
|
|
231
247
|
"type": "search-input"
|
|
232
248
|
},
|
|
233
249
|
{
|
|
234
|
-
"content": "@payload.error",
|
|
235
|
-
"type": "typography",
|
|
236
250
|
"color": "error",
|
|
251
|
+
"type": "typography",
|
|
252
|
+
"content": "@payload.error",
|
|
237
253
|
"variant": "caption"
|
|
238
254
|
}
|
|
239
|
-
]
|
|
255
|
+
],
|
|
256
|
+
"type": "stack"
|
|
240
257
|
}
|
|
241
258
|
]
|
|
242
259
|
]
|
|
@@ -251,8 +268,8 @@
|
|
|
251
268
|
"SearchResult",
|
|
252
269
|
{
|
|
253
270
|
"emit": {
|
|
254
|
-
"
|
|
255
|
-
"
|
|
271
|
+
"failure": "SearchResultLoadFailed",
|
|
272
|
+
"success": "SearchResultLoaded"
|
|
256
273
|
}
|
|
257
274
|
}
|
|
258
275
|
],
|
|
@@ -260,21 +277,21 @@
|
|
|
260
277
|
"render-ui",
|
|
261
278
|
"main",
|
|
262
279
|
{
|
|
280
|
+
"type": "stack",
|
|
281
|
+
"direction": "horizontal",
|
|
282
|
+
"align": "center",
|
|
283
|
+
"gap": "sm",
|
|
263
284
|
"children": [
|
|
264
285
|
{
|
|
265
|
-
"placeholder": "@config.placeholder",
|
|
266
286
|
"type": "search-input",
|
|
287
|
+
"placeholder": "@config.placeholder",
|
|
267
288
|
"event": "@config.event"
|
|
268
289
|
},
|
|
269
290
|
{
|
|
270
291
|
"type": "spinner",
|
|
271
292
|
"size": "sm"
|
|
272
293
|
}
|
|
273
|
-
]
|
|
274
|
-
"type": "stack",
|
|
275
|
-
"gap": "sm",
|
|
276
|
-
"align": "center",
|
|
277
|
-
"direction": "horizontal"
|
|
294
|
+
]
|
|
278
295
|
}
|
|
279
296
|
]
|
|
280
297
|
]
|
|
@@ -289,8 +306,8 @@
|
|
|
289
306
|
"SearchResult",
|
|
290
307
|
{
|
|
291
308
|
"emit": {
|
|
292
|
-
"
|
|
293
|
-
"
|
|
309
|
+
"failure": "SearchResultLoadFailed",
|
|
310
|
+
"success": "SearchResultLoaded"
|
|
294
311
|
}
|
|
295
312
|
}
|
|
296
313
|
],
|
|
@@ -310,9 +327,9 @@
|
|
|
310
327
|
}
|
|
311
328
|
],
|
|
312
329
|
"direction": "horizontal",
|
|
313
|
-
"gap": "sm",
|
|
314
330
|
"type": "stack",
|
|
315
|
-
"align": "center"
|
|
331
|
+
"align": "center",
|
|
332
|
+
"gap": "sm"
|
|
316
333
|
}
|
|
317
334
|
]
|
|
318
335
|
]
|
|
@@ -343,8 +360,8 @@
|
|
|
343
360
|
"SearchResult",
|
|
344
361
|
{
|
|
345
362
|
"emit": {
|
|
346
|
-
"
|
|
347
|
-
"
|
|
363
|
+
"failure": "SearchResultLoadFailed",
|
|
364
|
+
"success": "SearchResultLoaded"
|
|
348
365
|
}
|
|
349
366
|
}
|
|
350
367
|
],
|
|
@@ -352,21 +369,21 @@
|
|
|
352
369
|
"render-ui",
|
|
353
370
|
"main",
|
|
354
371
|
{
|
|
372
|
+
"type": "stack",
|
|
373
|
+
"gap": "sm",
|
|
355
374
|
"direction": "horizontal",
|
|
375
|
+
"align": "center",
|
|
356
376
|
"children": [
|
|
357
377
|
{
|
|
358
378
|
"placeholder": "@config.placeholder",
|
|
359
|
-
"
|
|
360
|
-
"
|
|
379
|
+
"type": "search-input",
|
|
380
|
+
"event": "@config.event"
|
|
361
381
|
},
|
|
362
382
|
{
|
|
363
383
|
"type": "spinner",
|
|
364
384
|
"size": "sm"
|
|
365
385
|
}
|
|
366
|
-
]
|
|
367
|
-
"gap": "sm",
|
|
368
|
-
"align": "center",
|
|
369
|
-
"type": "stack"
|
|
386
|
+
]
|
|
370
387
|
}
|
|
371
388
|
]
|
|
372
389
|
]
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"config": {
|
|
71
71
|
"filters": [
|
|
72
72
|
{
|
|
73
|
+
"filterType": "select",
|
|
73
74
|
"options": [
|
|
74
75
|
"active",
|
|
75
76
|
"inactive",
|
|
76
77
|
"pending"
|
|
77
78
|
],
|
|
78
79
|
"field": "status",
|
|
79
|
-
"filterType": "select",
|
|
80
80
|
"label": "Status"
|
|
81
81
|
}
|
|
82
82
|
],
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
"fields": [
|
|
92
92
|
{
|
|
93
93
|
"label": "Name",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
94
|
+
"name": "name",
|
|
95
|
+
"variant": "h4"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
|
-
"label": "Description",
|
|
99
98
|
"variant": "caption",
|
|
99
|
+
"label": "Description",
|
|
100
100
|
"name": "description"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
@@ -105,7 +105,33 @@
|
|
|
105
105
|
"variant": "badge"
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
|
-
}
|
|
108
|
+
},
|
|
109
|
+
"listens": [
|
|
110
|
+
{
|
|
111
|
+
"event": "SEARCH",
|
|
112
|
+
"triggers": "REFETCH",
|
|
113
|
+
"source": {
|
|
114
|
+
"kind": "trait",
|
|
115
|
+
"trait": "FilteredItemSearch"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"event": "FILTER",
|
|
120
|
+
"triggers": "REFETCH",
|
|
121
|
+
"source": {
|
|
122
|
+
"kind": "trait",
|
|
123
|
+
"trait": "FilteredItemFilter"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"event": "PAGE",
|
|
128
|
+
"triggers": "REFETCH",
|
|
129
|
+
"source": {
|
|
130
|
+
"kind": "trait",
|
|
131
|
+
"trait": "FilteredItemPagination"
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
109
135
|
},
|
|
110
136
|
{
|
|
111
137
|
"ref": "Pagination.traits.PagedItemPagination",
|
|
@@ -194,8 +220,8 @@
|
|
|
194
220
|
"FilteredListItem",
|
|
195
221
|
{
|
|
196
222
|
"emit": {
|
|
197
|
-
"
|
|
198
|
-
"
|
|
223
|
+
"failure": "FilteredListItemLoadFailed",
|
|
224
|
+
"success": "FilteredListItemLoaded"
|
|
199
225
|
}
|
|
200
226
|
}
|
|
201
227
|
],
|
|
@@ -203,43 +229,43 @@
|
|
|
203
229
|
"render-ui",
|
|
204
230
|
"main",
|
|
205
231
|
{
|
|
206
|
-
"
|
|
207
|
-
"direction": "vertical",
|
|
232
|
+
"gap": "md",
|
|
208
233
|
"children": [
|
|
209
234
|
{
|
|
235
|
+
"type": "stack",
|
|
236
|
+
"align": "center",
|
|
237
|
+
"gap": "sm",
|
|
238
|
+
"direction": "horizontal",
|
|
210
239
|
"children": [
|
|
211
240
|
{
|
|
212
|
-
"
|
|
213
|
-
"
|
|
241
|
+
"name": "list",
|
|
242
|
+
"type": "icon"
|
|
214
243
|
},
|
|
215
244
|
{
|
|
216
|
-
"
|
|
245
|
+
"type": "typography",
|
|
217
246
|
"content": "Filtered List",
|
|
218
|
-
"
|
|
247
|
+
"variant": "h2"
|
|
219
248
|
}
|
|
220
|
-
]
|
|
221
|
-
"gap": "sm",
|
|
222
|
-
"direction": "horizontal",
|
|
223
|
-
"type": "stack",
|
|
224
|
-
"align": "center"
|
|
249
|
+
]
|
|
225
250
|
},
|
|
226
251
|
{
|
|
227
252
|
"type": "divider"
|
|
228
253
|
},
|
|
229
254
|
{
|
|
230
|
-
"type": "stack",
|
|
231
|
-
"gap": "sm",
|
|
232
255
|
"children": [
|
|
233
256
|
"@trait.FilteredItemSearch",
|
|
234
257
|
"@trait.FilteredItemFilter"
|
|
235
258
|
],
|
|
236
|
-
"direction": "horizontal"
|
|
259
|
+
"direction": "horizontal",
|
|
260
|
+
"gap": "sm",
|
|
261
|
+
"type": "stack"
|
|
237
262
|
},
|
|
238
263
|
"@trait.FilteredItemBrowse",
|
|
239
264
|
"@trait.FilteredItemPagination"
|
|
240
265
|
],
|
|
266
|
+
"direction": "vertical",
|
|
241
267
|
"className": "max-w-5xl mx-auto w-full",
|
|
242
|
-
"
|
|
268
|
+
"type": "stack"
|
|
243
269
|
}
|
|
244
270
|
]
|
|
245
271
|
]
|