@almadar/std 13.0.8 → 13.1.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/behaviors/registry/core/atoms/std-browse.orb +59 -77
- package/behaviors/registry/core/atoms/std-filter.orb +39 -214
- package/behaviors/registry/core/atoms/std-pagination.orb +55 -189
- package/behaviors/registry/core/atoms/std-search.orb +14 -305
- package/behaviors/registry/core/molecules/std-filtered-list.orb +37 -38
- package/dist/behaviors/registry/core/atoms/std-browse.orb +59 -77
- package/dist/behaviors/registry/core/atoms/std-filter.orb +39 -214
- package/dist/behaviors/registry/core/atoms/std-pagination.orb +55 -189
- package/dist/behaviors/registry/core/atoms/std-search.orb +14 -305
- package/dist/behaviors/registry/core/molecules/std-filtered-list.orb +37 -38
- package/package.json +1 -1
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"name": "Refetch Query",
|
|
120
120
|
"payloadSchema": [
|
|
121
121
|
{
|
|
122
|
-
"name": "
|
|
122
|
+
"name": "searchTerm",
|
|
123
123
|
"type": "string",
|
|
124
124
|
"required": true
|
|
125
125
|
}
|
|
@@ -140,22 +140,6 @@
|
|
|
140
140
|
"required": true
|
|
141
141
|
}
|
|
142
142
|
]
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"key": "REFETCH_PAGE",
|
|
146
|
-
"name": "Refetch Page",
|
|
147
|
-
"payloadSchema": [
|
|
148
|
-
{
|
|
149
|
-
"name": "page",
|
|
150
|
-
"type": "number",
|
|
151
|
-
"required": true
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"name": "pageSize",
|
|
155
|
-
"type": "number",
|
|
156
|
-
"required": true
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
143
|
}
|
|
160
144
|
],
|
|
161
145
|
"transitions": [
|
|
@@ -196,10 +180,10 @@
|
|
|
196
180
|
"type": "stack",
|
|
197
181
|
"children": [
|
|
198
182
|
{
|
|
199
|
-
"fields": "@config.fields",
|
|
200
|
-
"entity": "@payload.data",
|
|
201
183
|
"pageSize": "@config.pageSize",
|
|
202
|
-
"
|
|
184
|
+
"fields": "@config.fields",
|
|
185
|
+
"type": "data-grid",
|
|
186
|
+
"entity": "@entity"
|
|
203
187
|
}
|
|
204
188
|
],
|
|
205
189
|
"direction": "vertical"
|
|
@@ -218,8 +202,8 @@
|
|
|
218
202
|
{
|
|
219
203
|
"type": "typography",
|
|
220
204
|
"content": "@payload.error",
|
|
221
|
-
"
|
|
222
|
-
"
|
|
205
|
+
"variant": "caption",
|
|
206
|
+
"color": "error"
|
|
223
207
|
}
|
|
224
208
|
]
|
|
225
209
|
]
|
|
@@ -234,8 +218,8 @@
|
|
|
234
218
|
"BrowseItem",
|
|
235
219
|
{
|
|
236
220
|
"emit": {
|
|
237
|
-
"
|
|
238
|
-
"
|
|
221
|
+
"failure": "BrowseItemLoadFailed",
|
|
222
|
+
"success": "BrowseItemLoaded"
|
|
239
223
|
}
|
|
240
224
|
}
|
|
241
225
|
],
|
|
@@ -251,41 +235,41 @@
|
|
|
251
235
|
},
|
|
252
236
|
{
|
|
253
237
|
"from": "browsing",
|
|
254
|
-
"to": "
|
|
238
|
+
"to": "browsing",
|
|
255
239
|
"event": "REFETCH_QUERY",
|
|
256
240
|
"effects": [
|
|
257
241
|
[
|
|
258
242
|
"fetch",
|
|
259
243
|
"BrowseItem",
|
|
260
244
|
{
|
|
261
|
-
"filter": [
|
|
262
|
-
"str/includes",
|
|
263
|
-
[
|
|
264
|
-
"object/get",
|
|
265
|
-
"@entity",
|
|
266
|
-
"name"
|
|
267
|
-
],
|
|
268
|
-
"@payload.query"
|
|
269
|
-
],
|
|
270
245
|
"emit": {
|
|
271
246
|
"success": "BrowseItemLoaded",
|
|
272
247
|
"failure": "BrowseItemLoadFailed"
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
248
|
+
},
|
|
249
|
+
"filter": [
|
|
250
|
+
"or",
|
|
251
|
+
[
|
|
252
|
+
"=",
|
|
253
|
+
"@payload.searchTerm",
|
|
254
|
+
""
|
|
255
|
+
],
|
|
256
|
+
[
|
|
257
|
+
"str/includes",
|
|
258
|
+
[
|
|
259
|
+
"object/get",
|
|
260
|
+
"@entity",
|
|
261
|
+
"name"
|
|
262
|
+
],
|
|
263
|
+
"@payload.searchTerm"
|
|
264
|
+
]
|
|
265
|
+
]
|
|
282
266
|
}
|
|
283
267
|
]
|
|
284
268
|
]
|
|
285
269
|
},
|
|
286
270
|
{
|
|
287
271
|
"from": "browsing",
|
|
288
|
-
"to": "
|
|
272
|
+
"to": "browsing",
|
|
289
273
|
"event": "REFETCH_FILTER",
|
|
290
274
|
"effects": [
|
|
291
275
|
[
|
|
@@ -293,51 +277,49 @@
|
|
|
293
277
|
"BrowseItem",
|
|
294
278
|
{
|
|
295
279
|
"filter": [
|
|
296
|
-
"
|
|
280
|
+
"or",
|
|
297
281
|
[
|
|
298
|
-
"
|
|
299
|
-
"@
|
|
300
|
-
"
|
|
282
|
+
"=",
|
|
283
|
+
"@payload.value",
|
|
284
|
+
""
|
|
301
285
|
],
|
|
302
|
-
|
|
286
|
+
[
|
|
287
|
+
"=",
|
|
288
|
+
[
|
|
289
|
+
"object/get",
|
|
290
|
+
"@entity",
|
|
291
|
+
"@payload.field"
|
|
292
|
+
],
|
|
293
|
+
"@payload.value"
|
|
294
|
+
]
|
|
303
295
|
],
|
|
304
296
|
"emit": {
|
|
305
|
-
"
|
|
306
|
-
"
|
|
297
|
+
"failure": "BrowseItemLoadFailed",
|
|
298
|
+
"success": "BrowseItemLoaded"
|
|
307
299
|
}
|
|
308
300
|
}
|
|
309
|
-
],
|
|
310
|
-
[
|
|
311
|
-
"render-ui",
|
|
312
|
-
"main",
|
|
313
|
-
{
|
|
314
|
-
"size": "sm",
|
|
315
|
-
"type": "spinner"
|
|
316
|
-
}
|
|
317
301
|
]
|
|
318
302
|
]
|
|
319
303
|
},
|
|
320
304
|
{
|
|
321
305
|
"from": "browsing",
|
|
322
|
-
"to": "
|
|
323
|
-
"event": "
|
|
306
|
+
"to": "browsing",
|
|
307
|
+
"event": "BrowseItemLoaded",
|
|
324
308
|
"effects": [
|
|
325
|
-
[
|
|
326
|
-
"fetch",
|
|
327
|
-
"BrowseItem",
|
|
328
|
-
{
|
|
329
|
-
"emit": {
|
|
330
|
-
"success": "BrowseItemLoaded",
|
|
331
|
-
"failure": "BrowseItemLoadFailed"
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
],
|
|
335
309
|
[
|
|
336
310
|
"render-ui",
|
|
337
311
|
"main",
|
|
338
312
|
{
|
|
339
|
-
"
|
|
340
|
-
|
|
313
|
+
"children": [
|
|
314
|
+
{
|
|
315
|
+
"type": "data-grid",
|
|
316
|
+
"entity": "@entity",
|
|
317
|
+
"fields": "@config.fields",
|
|
318
|
+
"pageSize": "@config.pageSize"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"direction": "vertical",
|
|
322
|
+
"type": "stack"
|
|
341
323
|
}
|
|
342
324
|
]
|
|
343
325
|
]
|
|
@@ -352,8 +334,8 @@
|
|
|
352
334
|
"BrowseItem",
|
|
353
335
|
{
|
|
354
336
|
"emit": {
|
|
355
|
-
"
|
|
356
|
-
"
|
|
337
|
+
"success": "BrowseItemLoaded",
|
|
338
|
+
"failure": "BrowseItemLoadFailed"
|
|
357
339
|
}
|
|
358
340
|
}
|
|
359
341
|
],
|
|
@@ -361,8 +343,8 @@
|
|
|
361
343
|
"render-ui",
|
|
362
344
|
"main",
|
|
363
345
|
{
|
|
364
|
-
"
|
|
365
|
-
"
|
|
346
|
+
"type": "spinner",
|
|
347
|
+
"size": "sm"
|
|
366
348
|
}
|
|
367
349
|
]
|
|
368
350
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-filter",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "std-filter as a Function — single primitive: filter-group",
|
|
4
|
+
"description": "std-filter as a Function — single primitive: filter-group. The atom's\nown FilterTarget entity is the UI-state container — every FILTER\ntransition persists field/value into the entity. Visual reflection of\nthe persisted value (filter-group `value` prop) is a follow-up that\nneeds the pattern registry + UI component to accept a `value` prop;\nthe persistence side is done.",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "FilterTargetOrbital",
|
|
@@ -15,26 +15,11 @@
|
|
|
15
15
|
"required": true
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
|
-
"name": "
|
|
19
|
-
"type": "string",
|
|
20
|
-
"required": true
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"name": "description",
|
|
18
|
+
"name": "field",
|
|
24
19
|
"type": "string"
|
|
25
20
|
},
|
|
26
21
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"type": "string",
|
|
29
|
-
"default": "active",
|
|
30
|
-
"values": [
|
|
31
|
-
"active",
|
|
32
|
-
"inactive",
|
|
33
|
-
"pending"
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "createdAt",
|
|
22
|
+
"name": "value",
|
|
38
23
|
"type": "string"
|
|
39
24
|
}
|
|
40
25
|
]
|
|
@@ -61,43 +46,14 @@
|
|
|
61
46
|
]
|
|
62
47
|
},
|
|
63
48
|
{
|
|
64
|
-
"event": "
|
|
65
|
-
"description": "Fired when FilterTarget finishes loading; payload.data holds the filtered list",
|
|
66
|
-
"scope": "internal",
|
|
67
|
-
"payloadSchema": [
|
|
68
|
-
{
|
|
69
|
-
"name": "data",
|
|
70
|
-
"type": "[FilterTarget]"
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"event": "FilterTargetLoadFailed",
|
|
76
|
-
"description": "Fired when FilterTarget fails to load",
|
|
77
|
-
"scope": "internal",
|
|
78
|
-
"payloadSchema": [
|
|
79
|
-
{
|
|
80
|
-
"name": "error",
|
|
81
|
-
"type": "string"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "code",
|
|
85
|
-
"type": "string"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
49
|
+
"event": "CLEAR_FILTERS"
|
|
88
50
|
}
|
|
89
51
|
],
|
|
90
52
|
"stateMachine": {
|
|
91
53
|
"states": [
|
|
92
54
|
{
|
|
93
|
-
"name": "
|
|
55
|
+
"name": "idle",
|
|
94
56
|
"isInitial": true
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"name": "browsing"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"name": "error"
|
|
101
57
|
}
|
|
102
58
|
],
|
|
103
59
|
"events": [
|
|
@@ -105,30 +61,6 @@
|
|
|
105
61
|
"key": "INIT",
|
|
106
62
|
"name": "Initialize"
|
|
107
63
|
},
|
|
108
|
-
{
|
|
109
|
-
"key": "FilterTargetLoaded",
|
|
110
|
-
"name": "FilterTarget loaded",
|
|
111
|
-
"payloadSchema": [
|
|
112
|
-
{
|
|
113
|
-
"name": "data",
|
|
114
|
-
"type": "[FilterTarget]"
|
|
115
|
-
}
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"key": "FilterTargetLoadFailed",
|
|
120
|
-
"name": "FilterTarget load failed",
|
|
121
|
-
"payloadSchema": [
|
|
122
|
-
{
|
|
123
|
-
"name": "error",
|
|
124
|
-
"type": "string"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"name": "code",
|
|
128
|
-
"type": "string"
|
|
129
|
-
}
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
64
|
{
|
|
133
65
|
"key": "FILTER",
|
|
134
66
|
"name": "Filter",
|
|
@@ -152,181 +84,74 @@
|
|
|
152
84
|
],
|
|
153
85
|
"transitions": [
|
|
154
86
|
{
|
|
155
|
-
"from": "
|
|
156
|
-
"to": "
|
|
87
|
+
"from": "idle",
|
|
88
|
+
"to": "idle",
|
|
157
89
|
"event": "INIT",
|
|
158
90
|
"effects": [
|
|
159
91
|
[
|
|
160
92
|
"fetch",
|
|
161
93
|
"FilterTarget",
|
|
162
|
-
{
|
|
163
|
-
"emit": {
|
|
164
|
-
"failure": "FilterTargetLoadFailed",
|
|
165
|
-
"success": "FilterTargetLoaded"
|
|
166
|
-
}
|
|
167
|
-
}
|
|
94
|
+
{}
|
|
168
95
|
],
|
|
169
96
|
[
|
|
170
97
|
"render-ui",
|
|
171
98
|
"main",
|
|
172
99
|
{
|
|
173
|
-
"
|
|
174
|
-
"type": "spinner"
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"from": "loading",
|
|
181
|
-
"to": "browsing",
|
|
182
|
-
"event": "FilterTargetLoaded",
|
|
183
|
-
"effects": [
|
|
184
|
-
[
|
|
185
|
-
"render-ui",
|
|
186
|
-
"main",
|
|
187
|
-
{
|
|
100
|
+
"filters": "@config.filters",
|
|
188
101
|
"type": "filter-group",
|
|
189
|
-
"entity": "FilterTarget"
|
|
190
|
-
"filters": "@config.filters"
|
|
102
|
+
"entity": "FilterTarget"
|
|
191
103
|
}
|
|
192
104
|
]
|
|
193
105
|
]
|
|
194
106
|
},
|
|
195
107
|
{
|
|
196
|
-
"from": "
|
|
197
|
-
"to": "
|
|
198
|
-
"event": "FilterTargetLoadFailed",
|
|
199
|
-
"effects": [
|
|
200
|
-
[
|
|
201
|
-
"render-ui",
|
|
202
|
-
"main",
|
|
203
|
-
{
|
|
204
|
-
"children": [
|
|
205
|
-
{
|
|
206
|
-
"filters": "@config.filters",
|
|
207
|
-
"entity": "FilterTarget",
|
|
208
|
-
"type": "filter-group"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"type": "typography",
|
|
212
|
-
"variant": "caption",
|
|
213
|
-
"color": "error",
|
|
214
|
-
"content": "@payload.error"
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"gap": "xs",
|
|
218
|
-
"type": "stack",
|
|
219
|
-
"direction": "vertical"
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"from": "browsing",
|
|
226
|
-
"to": "loading",
|
|
108
|
+
"from": "idle",
|
|
109
|
+
"to": "idle",
|
|
227
110
|
"event": "FILTER",
|
|
228
111
|
"effects": [
|
|
229
112
|
[
|
|
230
|
-
"
|
|
231
|
-
"
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"@payload.field"
|
|
239
|
-
],
|
|
240
|
-
"@payload.value"
|
|
241
|
-
],
|
|
242
|
-
"emit": {
|
|
243
|
-
"failure": "FilterTargetLoadFailed",
|
|
244
|
-
"success": "FilterTargetLoaded"
|
|
245
|
-
}
|
|
246
|
-
}
|
|
113
|
+
"set",
|
|
114
|
+
"@entity.field",
|
|
115
|
+
"@payload.field"
|
|
116
|
+
],
|
|
117
|
+
[
|
|
118
|
+
"set",
|
|
119
|
+
"@entity.value",
|
|
120
|
+
"@payload.value"
|
|
247
121
|
],
|
|
248
122
|
[
|
|
249
123
|
"render-ui",
|
|
250
124
|
"main",
|
|
251
125
|
{
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
|
|
255
|
-
"filters": "@config.filters",
|
|
256
|
-
"type": "filter-group",
|
|
257
|
-
"entity": "FilterTarget"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"type": "spinner",
|
|
261
|
-
"size": "sm"
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"gap": "sm",
|
|
265
|
-
"direction": "horizontal",
|
|
266
|
-
"align": "center"
|
|
126
|
+
"filters": "@config.filters",
|
|
127
|
+
"type": "filter-group",
|
|
128
|
+
"entity": "FilterTarget"
|
|
267
129
|
}
|
|
268
130
|
]
|
|
269
131
|
]
|
|
270
132
|
},
|
|
271
133
|
{
|
|
272
|
-
"from": "
|
|
273
|
-
"to": "
|
|
134
|
+
"from": "idle",
|
|
135
|
+
"to": "idle",
|
|
274
136
|
"event": "CLEAR_FILTERS",
|
|
275
137
|
"effects": [
|
|
276
138
|
[
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
|
|
280
|
-
"emit": {
|
|
281
|
-
"failure": "FilterTargetLoadFailed",
|
|
282
|
-
"success": "FilterTargetLoaded"
|
|
283
|
-
}
|
|
284
|
-
}
|
|
139
|
+
"set",
|
|
140
|
+
"@entity.field",
|
|
141
|
+
""
|
|
285
142
|
],
|
|
286
143
|
[
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
"align": "center",
|
|
291
|
-
"direction": "horizontal",
|
|
292
|
-
"children": [
|
|
293
|
-
{
|
|
294
|
-
"type": "filter-group",
|
|
295
|
-
"entity": "FilterTarget",
|
|
296
|
-
"filters": "@config.filters"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"type": "spinner",
|
|
300
|
-
"size": "sm"
|
|
301
|
-
}
|
|
302
|
-
],
|
|
303
|
-
"gap": "sm",
|
|
304
|
-
"type": "stack"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
]
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"from": "error",
|
|
311
|
-
"to": "loading",
|
|
312
|
-
"event": "INIT",
|
|
313
|
-
"effects": [
|
|
314
|
-
[
|
|
315
|
-
"fetch",
|
|
316
|
-
"FilterTarget",
|
|
317
|
-
{
|
|
318
|
-
"emit": {
|
|
319
|
-
"failure": "FilterTargetLoadFailed",
|
|
320
|
-
"success": "FilterTargetLoaded"
|
|
321
|
-
}
|
|
322
|
-
}
|
|
144
|
+
"set",
|
|
145
|
+
"@entity.value",
|
|
146
|
+
""
|
|
323
147
|
],
|
|
324
148
|
[
|
|
325
149
|
"render-ui",
|
|
326
150
|
"main",
|
|
327
151
|
{
|
|
328
|
-
"
|
|
329
|
-
"
|
|
152
|
+
"entity": "FilterTarget",
|
|
153
|
+
"type": "filter-group",
|
|
154
|
+
"filters": "@config.filters"
|
|
330
155
|
}
|
|
331
156
|
]
|
|
332
157
|
]
|
|
@@ -334,16 +159,16 @@
|
|
|
334
159
|
]
|
|
335
160
|
},
|
|
336
161
|
"config": {
|
|
337
|
-
"filters": {
|
|
338
|
-
"type": "[object]",
|
|
339
|
-
"default": []
|
|
340
|
-
},
|
|
341
162
|
"event": {
|
|
342
163
|
"type": "string",
|
|
343
164
|
"default": "FILTER"
|
|
165
|
+
},
|
|
166
|
+
"filters": {
|
|
167
|
+
"type": "[object]",
|
|
168
|
+
"default": []
|
|
344
169
|
}
|
|
345
170
|
},
|
|
346
|
-
"scope": "
|
|
171
|
+
"scope": "instance"
|
|
347
172
|
}
|
|
348
173
|
],
|
|
349
174
|
"pages": [
|