@almadar/std 13.0.6 → 13.0.8
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 +114 -29
- package/behaviors/registry/core/atoms/std-filter.orb +26 -34
- package/behaviors/registry/core/atoms/std-pagination.orb +21 -29
- package/behaviors/registry/core/atoms/std-search.orb +44 -42
- package/behaviors/registry/core/molecules/std-filtered-list.orb +31 -31
- package/dist/behaviors/registry/core/atoms/std-browse.orb +114 -29
- package/dist/behaviors/registry/core/atoms/std-filter.orb +26 -34
- package/dist/behaviors/registry/core/atoms/std-pagination.orb +21 -29
- package/dist/behaviors/registry/core/atoms/std-search.orb +44 -42
- package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +31 -31
- package/package.json +1 -1
|
@@ -161,9 +161,9 @@
|
|
|
161
161
|
"render-ui",
|
|
162
162
|
"main",
|
|
163
163
|
{
|
|
164
|
+
"event": "@config.event",
|
|
164
165
|
"placeholder": "@config.placeholder",
|
|
165
|
-
"type": "search-input"
|
|
166
|
-
"event": "@config.event"
|
|
166
|
+
"type": "search-input"
|
|
167
167
|
}
|
|
168
168
|
]
|
|
169
169
|
]
|
|
@@ -173,21 +173,23 @@
|
|
|
173
173
|
"to": "loading",
|
|
174
174
|
"event": "SEARCH",
|
|
175
175
|
"effects": [
|
|
176
|
-
[
|
|
177
|
-
"emit",
|
|
178
|
-
"SEARCH",
|
|
179
|
-
{
|
|
180
|
-
"query": "@payload.query"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
176
|
[
|
|
184
177
|
"fetch",
|
|
185
178
|
"SearchResult",
|
|
186
179
|
{
|
|
187
180
|
"emit": {
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
}
|
|
181
|
+
"success": "SearchResultLoaded",
|
|
182
|
+
"failure": "SearchResultLoadFailed"
|
|
183
|
+
},
|
|
184
|
+
"filter": [
|
|
185
|
+
"str/includes",
|
|
186
|
+
[
|
|
187
|
+
"object/get",
|
|
188
|
+
"@entity",
|
|
189
|
+
"name"
|
|
190
|
+
],
|
|
191
|
+
"@payload.query"
|
|
192
|
+
]
|
|
191
193
|
}
|
|
192
194
|
],
|
|
193
195
|
[
|
|
@@ -195,6 +197,9 @@
|
|
|
195
197
|
"main",
|
|
196
198
|
{
|
|
197
199
|
"align": "center",
|
|
200
|
+
"gap": "sm",
|
|
201
|
+
"direction": "horizontal",
|
|
202
|
+
"type": "stack",
|
|
198
203
|
"children": [
|
|
199
204
|
{
|
|
200
205
|
"placeholder": "@config.placeholder",
|
|
@@ -202,13 +207,10 @@
|
|
|
202
207
|
"event": "@config.event"
|
|
203
208
|
},
|
|
204
209
|
{
|
|
205
|
-
"
|
|
206
|
-
"
|
|
210
|
+
"size": "sm",
|
|
211
|
+
"type": "spinner"
|
|
207
212
|
}
|
|
208
|
-
]
|
|
209
|
-
"gap": "sm",
|
|
210
|
-
"type": "stack",
|
|
211
|
-
"direction": "horizontal"
|
|
213
|
+
]
|
|
212
214
|
}
|
|
213
215
|
]
|
|
214
216
|
]
|
|
@@ -238,22 +240,22 @@
|
|
|
238
240
|
"render-ui",
|
|
239
241
|
"main",
|
|
240
242
|
{
|
|
241
|
-
"gap": "xs",
|
|
242
|
-
"direction": "vertical",
|
|
243
243
|
"children": [
|
|
244
244
|
{
|
|
245
|
-
"placeholder": "@config.placeholder",
|
|
246
245
|
"event": "@config.event",
|
|
247
|
-
"type": "search-input"
|
|
246
|
+
"type": "search-input",
|
|
247
|
+
"placeholder": "@config.placeholder"
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
"color": "error",
|
|
251
|
-
"type": "typography",
|
|
252
251
|
"content": "@payload.error",
|
|
252
|
+
"type": "typography",
|
|
253
253
|
"variant": "caption"
|
|
254
254
|
}
|
|
255
255
|
],
|
|
256
|
-
"
|
|
256
|
+
"direction": "vertical",
|
|
257
|
+
"type": "stack",
|
|
258
|
+
"gap": "xs"
|
|
257
259
|
}
|
|
258
260
|
]
|
|
259
261
|
]
|
|
@@ -277,21 +279,21 @@
|
|
|
277
279
|
"render-ui",
|
|
278
280
|
"main",
|
|
279
281
|
{
|
|
280
|
-
"type": "stack",
|
|
281
282
|
"direction": "horizontal",
|
|
282
|
-
"align": "center",
|
|
283
283
|
"gap": "sm",
|
|
284
|
+
"align": "center",
|
|
284
285
|
"children": [
|
|
285
286
|
{
|
|
286
|
-
"type": "search-input",
|
|
287
287
|
"placeholder": "@config.placeholder",
|
|
288
|
+
"type": "search-input",
|
|
288
289
|
"event": "@config.event"
|
|
289
290
|
},
|
|
290
291
|
{
|
|
291
|
-
"
|
|
292
|
-
"
|
|
292
|
+
"size": "sm",
|
|
293
|
+
"type": "spinner"
|
|
293
294
|
}
|
|
294
|
-
]
|
|
295
|
+
],
|
|
296
|
+
"type": "stack"
|
|
295
297
|
}
|
|
296
298
|
]
|
|
297
299
|
]
|
|
@@ -317,19 +319,19 @@
|
|
|
317
319
|
{
|
|
318
320
|
"children": [
|
|
319
321
|
{
|
|
320
|
-
"placeholder": "@config.placeholder",
|
|
321
322
|
"event": "@config.event",
|
|
323
|
+
"placeholder": "@config.placeholder",
|
|
322
324
|
"type": "search-input"
|
|
323
325
|
},
|
|
324
326
|
{
|
|
325
|
-
"
|
|
326
|
-
"
|
|
327
|
+
"size": "sm",
|
|
328
|
+
"type": "spinner"
|
|
327
329
|
}
|
|
328
330
|
],
|
|
329
|
-
"direction": "horizontal",
|
|
330
331
|
"type": "stack",
|
|
331
|
-
"
|
|
332
|
-
"gap": "sm"
|
|
332
|
+
"direction": "horizontal",
|
|
333
|
+
"gap": "sm",
|
|
334
|
+
"align": "center"
|
|
333
335
|
}
|
|
334
336
|
]
|
|
335
337
|
]
|
|
@@ -343,8 +345,8 @@
|
|
|
343
345
|
"render-ui",
|
|
344
346
|
"main",
|
|
345
347
|
{
|
|
346
|
-
"event": "@config.event",
|
|
347
348
|
"placeholder": "@config.placeholder",
|
|
349
|
+
"event": "@config.event",
|
|
348
350
|
"type": "search-input"
|
|
349
351
|
}
|
|
350
352
|
]
|
|
@@ -360,8 +362,8 @@
|
|
|
360
362
|
"SearchResult",
|
|
361
363
|
{
|
|
362
364
|
"emit": {
|
|
363
|
-
"
|
|
364
|
-
"
|
|
365
|
+
"success": "SearchResultLoaded",
|
|
366
|
+
"failure": "SearchResultLoadFailed"
|
|
365
367
|
}
|
|
366
368
|
}
|
|
367
369
|
],
|
|
@@ -369,9 +371,9 @@
|
|
|
369
371
|
"render-ui",
|
|
370
372
|
"main",
|
|
371
373
|
{
|
|
374
|
+
"direction": "horizontal",
|
|
372
375
|
"type": "stack",
|
|
373
376
|
"gap": "sm",
|
|
374
|
-
"direction": "horizontal",
|
|
375
377
|
"align": "center",
|
|
376
378
|
"children": [
|
|
377
379
|
{
|
|
@@ -380,8 +382,8 @@
|
|
|
380
382
|
"event": "@config.event"
|
|
381
383
|
},
|
|
382
384
|
{
|
|
383
|
-
"
|
|
384
|
-
"
|
|
385
|
+
"size": "sm",
|
|
386
|
+
"type": "spinner"
|
|
385
387
|
}
|
|
386
388
|
]
|
|
387
389
|
}
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
"name": "FilteredItemFilter",
|
|
69
69
|
"linkedEntity": "FilteredListItem",
|
|
70
70
|
"config": {
|
|
71
|
+
"event": "FILTER",
|
|
71
72
|
"filters": [
|
|
72
73
|
{
|
|
73
|
-
"
|
|
74
|
+
"field": "status",
|
|
74
75
|
"options": [
|
|
75
76
|
"active",
|
|
76
77
|
"inactive",
|
|
77
78
|
"pending"
|
|
78
79
|
],
|
|
79
|
-
"
|
|
80
|
-
"
|
|
80
|
+
"label": "Status",
|
|
81
|
+
"filterType": "select"
|
|
81
82
|
}
|
|
82
|
-
]
|
|
83
|
-
"event": "FILTER"
|
|
83
|
+
]
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
{
|
|
@@ -91,25 +91,25 @@
|
|
|
91
91
|
"fields": [
|
|
92
92
|
{
|
|
93
93
|
"label": "Name",
|
|
94
|
-
"
|
|
95
|
-
"
|
|
94
|
+
"variant": "h4",
|
|
95
|
+
"name": "name"
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"variant": "caption",
|
|
99
|
-
"
|
|
100
|
-
"
|
|
99
|
+
"name": "description",
|
|
100
|
+
"label": "Description"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
"name": "status",
|
|
104
103
|
"label": "Status",
|
|
105
|
-
"variant": "badge"
|
|
104
|
+
"variant": "badge",
|
|
105
|
+
"name": "status"
|
|
106
106
|
}
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
"listens": [
|
|
110
110
|
{
|
|
111
111
|
"event": "SEARCH",
|
|
112
|
-
"triggers": "
|
|
112
|
+
"triggers": "REFETCH_QUERY",
|
|
113
113
|
"source": {
|
|
114
114
|
"kind": "trait",
|
|
115
115
|
"trait": "FilteredItemSearch"
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"event": "FILTER",
|
|
120
|
-
"triggers": "
|
|
120
|
+
"triggers": "REFETCH_FILTER",
|
|
121
121
|
"source": {
|
|
122
122
|
"kind": "trait",
|
|
123
123
|
"trait": "FilteredItemFilter"
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
"event": "PAGE",
|
|
128
|
-
"triggers": "
|
|
128
|
+
"triggers": "REFETCH_PAGE",
|
|
129
129
|
"source": {
|
|
130
130
|
"kind": "trait",
|
|
131
131
|
"trait": "FilteredItemPagination"
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
"name": "FilteredItemPagination",
|
|
139
139
|
"linkedEntity": "FilteredListItem",
|
|
140
140
|
"config": {
|
|
141
|
-
"
|
|
142
|
-
"
|
|
141
|
+
"totalPages": 10.0,
|
|
142
|
+
"event": "PAGE"
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
{
|
|
@@ -220,8 +220,8 @@
|
|
|
220
220
|
"FilteredListItem",
|
|
221
221
|
{
|
|
222
222
|
"emit": {
|
|
223
|
-
"
|
|
224
|
-
"
|
|
223
|
+
"success": "FilteredListItemLoaded",
|
|
224
|
+
"failure": "FilteredListItemLoadFailed"
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
],
|
|
@@ -229,43 +229,43 @@
|
|
|
229
229
|
"render-ui",
|
|
230
230
|
"main",
|
|
231
231
|
{
|
|
232
|
-
"gap": "md",
|
|
233
232
|
"children": [
|
|
234
233
|
{
|
|
235
|
-
"type": "stack",
|
|
236
|
-
"align": "center",
|
|
237
|
-
"gap": "sm",
|
|
238
234
|
"direction": "horizontal",
|
|
235
|
+
"gap": "sm",
|
|
236
|
+
"align": "center",
|
|
239
237
|
"children": [
|
|
240
238
|
{
|
|
241
239
|
"name": "list",
|
|
242
240
|
"type": "icon"
|
|
243
241
|
},
|
|
244
242
|
{
|
|
245
|
-
"
|
|
243
|
+
"variant": "h2",
|
|
246
244
|
"content": "Filtered List",
|
|
247
|
-
"
|
|
245
|
+
"type": "typography"
|
|
248
246
|
}
|
|
249
|
-
]
|
|
247
|
+
],
|
|
248
|
+
"type": "stack"
|
|
250
249
|
},
|
|
251
250
|
{
|
|
252
251
|
"type": "divider"
|
|
253
252
|
},
|
|
254
253
|
{
|
|
254
|
+
"type": "stack",
|
|
255
|
+
"gap": "sm",
|
|
256
|
+
"direction": "horizontal",
|
|
255
257
|
"children": [
|
|
256
258
|
"@trait.FilteredItemSearch",
|
|
257
259
|
"@trait.FilteredItemFilter"
|
|
258
|
-
]
|
|
259
|
-
"direction": "horizontal",
|
|
260
|
-
"gap": "sm",
|
|
261
|
-
"type": "stack"
|
|
260
|
+
]
|
|
262
261
|
},
|
|
263
262
|
"@trait.FilteredItemBrowse",
|
|
264
263
|
"@trait.FilteredItemPagination"
|
|
265
264
|
],
|
|
266
|
-
"
|
|
265
|
+
"type": "stack",
|
|
267
266
|
"className": "max-w-5xl mx-auto w-full",
|
|
268
|
-
"
|
|
267
|
+
"gap": "md",
|
|
268
|
+
"direction": "vertical"
|
|
269
269
|
}
|
|
270
270
|
]
|
|
271
271
|
]
|