@almadar/std 13.0.2 → 13.0.4

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.
@@ -126,8 +126,8 @@
126
126
  "BrowseItem",
127
127
  {
128
128
  "emit": {
129
- "success": "BrowseItemLoaded",
130
- "failure": "BrowseItemLoadFailed"
129
+ "failure": "BrowseItemLoadFailed",
130
+ "success": "BrowseItemLoaded"
131
131
  }
132
132
  }
133
133
  ],
@@ -135,8 +135,8 @@
135
135
  "render-ui",
136
136
  "main",
137
137
  {
138
- "type": "spinner",
139
- "size": "sm"
138
+ "size": "sm",
139
+ "type": "spinner"
140
140
  }
141
141
  ]
142
142
  ]
@@ -150,16 +150,16 @@
150
150
  "render-ui",
151
151
  "main",
152
152
  {
153
- "direction": "vertical",
154
153
  "children": [
155
154
  {
155
+ "fields": "@config.fields",
156
156
  "type": "data-grid",
157
157
  "pageSize": "@config.pageSize",
158
- "fields": "@config.fields",
159
158
  "entity": "@payload.data"
160
159
  }
161
160
  ],
162
- "type": "stack"
161
+ "type": "stack",
162
+ "direction": "vertical"
163
163
  }
164
164
  ]
165
165
  ]
@@ -174,9 +174,9 @@
174
174
  "main",
175
175
  {
176
176
  "variant": "caption",
177
+ "color": "error",
177
178
  "content": "@payload.error",
178
- "type": "typography",
179
- "color": "error"
179
+ "type": "typography"
180
180
  }
181
181
  ]
182
182
  ]
@@ -191,8 +191,8 @@
191
191
  "BrowseItem",
192
192
  {
193
193
  "emit": {
194
- "success": "BrowseItemLoaded",
195
- "failure": "BrowseItemLoadFailed"
194
+ "failure": "BrowseItemLoadFailed",
195
+ "success": "BrowseItemLoaded"
196
196
  }
197
197
  }
198
198
  ],
@@ -225,8 +225,8 @@
225
225
  "render-ui",
226
226
  "main",
227
227
  {
228
- "size": "sm",
229
- "type": "spinner"
228
+ "type": "spinner",
229
+ "size": "sm"
230
230
  }
231
231
  ]
232
232
  ]
@@ -234,13 +234,13 @@
234
234
  ]
235
235
  },
236
236
  "config": {
237
- "fields": {
238
- "type": "object",
239
- "default": []
240
- },
241
237
  "pageSize": {
242
238
  "type": "number",
243
239
  "default": 0.0
240
+ },
241
+ "fields": {
242
+ "type": "[object]",
243
+ "default": []
244
244
  }
245
245
  },
246
246
  "scope": "collection"
@@ -146,8 +146,8 @@
146
146
  "FilterTarget",
147
147
  {
148
148
  "emit": {
149
- "success": "FilterTargetLoaded",
150
- "failure": "FilterTargetLoadFailed"
149
+ "failure": "FilterTargetLoadFailed",
150
+ "success": "FilterTargetLoaded"
151
151
  }
152
152
  }
153
153
  ],
@@ -170,9 +170,9 @@
170
170
  "render-ui",
171
171
  "main",
172
172
  {
173
+ "entity": "FilterTarget",
173
174
  "type": "filter-group",
174
- "filters": "@config.filters",
175
- "entity": "FilterTarget"
175
+ "filters": "@config.filters"
176
176
  }
177
177
  ]
178
178
  ]
@@ -187,21 +187,21 @@
187
187
  "main",
188
188
  {
189
189
  "type": "stack",
190
- "gap": "xs",
191
- "direction": "vertical",
192
190
  "children": [
193
191
  {
194
- "entity": "FilterTarget",
195
192
  "type": "filter-group",
193
+ "entity": "FilterTarget",
196
194
  "filters": "@config.filters"
197
195
  },
198
196
  {
199
- "color": "error",
200
- "variant": "caption",
201
197
  "content": "@payload.error",
202
- "type": "typography"
198
+ "color": "error",
199
+ "type": "typography",
200
+ "variant": "caption"
203
201
  }
204
- ]
202
+ ],
203
+ "gap": "xs",
204
+ "direction": "vertical"
205
205
  }
206
206
  ]
207
207
  ]
@@ -215,10 +215,6 @@
215
215
  "fetch",
216
216
  "FilterTarget",
217
217
  {
218
- "emit": {
219
- "failure": "FilterTargetLoadFailed",
220
- "success": "FilterTargetLoaded"
221
- },
222
218
  "filter": [
223
219
  "=",
224
220
  [
@@ -227,26 +223,30 @@
227
223
  "@payload.field"
228
224
  ],
229
225
  "@payload.value"
230
- ]
226
+ ],
227
+ "emit": {
228
+ "failure": "FilterTargetLoadFailed",
229
+ "success": "FilterTargetLoaded"
230
+ }
231
231
  }
232
232
  ],
233
233
  [
234
234
  "render-ui",
235
235
  "main",
236
236
  {
237
+ "direction": "horizontal",
238
+ "type": "stack",
237
239
  "align": "center",
238
240
  "gap": "sm",
239
- "type": "stack",
240
- "direction": "horizontal",
241
241
  "children": [
242
242
  {
243
+ "filters": "@config.filters",
243
244
  "entity": "FilterTarget",
244
- "type": "filter-group",
245
- "filters": "@config.filters"
245
+ "type": "filter-group"
246
246
  },
247
247
  {
248
- "type": "spinner",
249
- "size": "sm"
248
+ "size": "sm",
249
+ "type": "spinner"
250
250
  }
251
251
  ]
252
252
  }
@@ -263,8 +263,8 @@
263
263
  "FilterTarget",
264
264
  {
265
265
  "emit": {
266
- "failure": "FilterTargetLoadFailed",
267
- "success": "FilterTargetLoaded"
266
+ "success": "FilterTargetLoaded",
267
+ "failure": "FilterTargetLoadFailed"
268
268
  }
269
269
  }
270
270
  ],
@@ -272,7 +272,8 @@
272
272
  "render-ui",
273
273
  "main",
274
274
  {
275
- "align": "center",
275
+ "type": "stack",
276
+ "gap": "sm",
276
277
  "children": [
277
278
  {
278
279
  "filters": "@config.filters",
@@ -280,13 +281,12 @@
280
281
  "entity": "FilterTarget"
281
282
  },
282
283
  {
283
- "type": "spinner",
284
- "size": "sm"
284
+ "size": "sm",
285
+ "type": "spinner"
285
286
  }
286
287
  ],
287
- "direction": "horizontal",
288
- "gap": "sm",
289
- "type": "stack"
288
+ "align": "center",
289
+ "direction": "horizontal"
290
290
  }
291
291
  ]
292
292
  ]
@@ -301,8 +301,8 @@
301
301
  "FilterTarget",
302
302
  {
303
303
  "emit": {
304
- "success": "FilterTargetLoaded",
305
- "failure": "FilterTargetLoadFailed"
304
+ "failure": "FilterTargetLoadFailed",
305
+ "success": "FilterTargetLoaded"
306
306
  }
307
307
  }
308
308
  ],
@@ -310,8 +310,8 @@
310
310
  "render-ui",
311
311
  "main",
312
312
  {
313
- "type": "spinner",
314
- "size": "sm"
313
+ "size": "sm",
314
+ "type": "spinner"
315
315
  }
316
316
  ]
317
317
  ]
@@ -319,13 +319,13 @@
319
319
  ]
320
320
  },
321
321
  "config": {
322
+ "filters": {
323
+ "type": "[object]",
324
+ "default": []
325
+ },
322
326
  "event": {
323
327
  "type": "string",
324
328
  "default": "FILTER"
325
- },
326
- "filters": {
327
- "type": "object",
328
- "default": []
329
329
  }
330
330
  },
331
331
  "scope": "collection"
@@ -142,8 +142,8 @@
142
142
  "PagedItem",
143
143
  {
144
144
  "emit": {
145
- "failure": "PagedItemLoadFailed",
146
- "success": "PagedItemLoaded"
145
+ "success": "PagedItemLoaded",
146
+ "failure": "PagedItemLoadFailed"
147
147
  }
148
148
  }
149
149
  ],
@@ -151,8 +151,8 @@
151
151
  "render-ui",
152
152
  "main",
153
153
  {
154
- "size": "sm",
155
- "type": "spinner"
154
+ "type": "spinner",
155
+ "size": "sm"
156
156
  }
157
157
  ]
158
158
  ]
@@ -166,22 +166,22 @@
166
166
  "render-ui",
167
167
  "main",
168
168
  {
169
+ "type": "stack",
169
170
  "gap": "sm",
170
- "direction": "vertical",
171
171
  "children": [
172
172
  {
173
173
  "totalPages": "@config.totalPages",
174
- "type": "pagination",
175
174
  "currentPage": 1.0,
176
- "showPageSize": false,
177
- "onPageChange": "@config.event"
175
+ "type": "pagination",
176
+ "onPageChange": "@config.event",
177
+ "showPageSize": false
178
178
  },
179
179
  {
180
- "loadMoreEvent": "@config.event",
181
- "type": "infinite-scroll-sentinel"
180
+ "type": "infinite-scroll-sentinel",
181
+ "loadMoreEvent": "@config.event"
182
182
  }
183
183
  ],
184
- "type": "stack"
184
+ "direction": "vertical"
185
185
  }
186
186
  ]
187
187
  ]
@@ -196,16 +196,16 @@
196
196
  "main",
197
197
  {
198
198
  "type": "stack",
199
- "gap": "xs",
200
199
  "children": [
201
200
  {
201
+ "gap": "sm",
202
202
  "children": [
203
203
  {
204
- "onPageChange": "@config.event",
205
204
  "type": "pagination",
206
- "showPageSize": false,
205
+ "onPageChange": "@config.event",
207
206
  "totalPages": "@config.totalPages",
208
- "currentPage": 1.0
207
+ "currentPage": 1.0,
208
+ "showPageSize": false
209
209
  },
210
210
  {
211
211
  "type": "infinite-scroll-sentinel",
@@ -213,16 +213,16 @@
213
213
  }
214
214
  ],
215
215
  "direction": "vertical",
216
- "gap": "sm",
217
216
  "type": "stack"
218
217
  },
219
218
  {
220
- "type": "typography",
221
- "content": "@payload.error",
219
+ "variant": "caption",
222
220
  "color": "error",
223
- "variant": "caption"
221
+ "content": "@payload.error",
222
+ "type": "typography"
224
223
  }
225
224
  ],
225
+ "gap": "xs",
226
226
  "direction": "vertical"
227
227
  }
228
228
  ]
@@ -247,34 +247,34 @@
247
247
  "render-ui",
248
248
  "main",
249
249
  {
250
+ "direction": "horizontal",
251
+ "gap": "sm",
252
+ "align": "center",
250
253
  "type": "stack",
251
254
  "children": [
252
255
  {
253
256
  "gap": "sm",
254
257
  "type": "stack",
255
- "direction": "vertical",
256
258
  "children": [
257
259
  {
258
260
  "showPageSize": false,
259
261
  "type": "pagination",
260
262
  "totalPages": "@config.totalPages",
261
- "onPageChange": "@config.event",
262
- "currentPage": 1.0
263
+ "currentPage": 1.0,
264
+ "onPageChange": "@config.event"
263
265
  },
264
266
  {
265
267
  "type": "infinite-scroll-sentinel",
266
268
  "loadMoreEvent": "@config.event"
267
269
  }
268
- ]
270
+ ],
271
+ "direction": "vertical"
269
272
  },
270
273
  {
271
- "size": "sm",
272
- "type": "spinner"
274
+ "type": "spinner",
275
+ "size": "sm"
273
276
  }
274
- ],
275
- "gap": "sm",
276
- "direction": "horizontal",
277
- "align": "center"
277
+ ]
278
278
  }
279
279
  ]
280
280
  ]
@@ -307,13 +307,13 @@
307
307
  ]
308
308
  },
309
309
  "config": {
310
- "event": {
311
- "type": "string",
312
- "default": "PAGE"
313
- },
314
310
  "totalPages": {
315
311
  "type": "number",
316
312
  "default": 10.0
313
+ },
314
+ "event": {
315
+ "type": "string",
316
+ "default": "PAGE"
317
317
  }
318
318
  },
319
319
  "scope": "collection"
@@ -137,12 +137,22 @@
137
137
  "to": "idle",
138
138
  "event": "INIT",
139
139
  "effects": [
140
+ [
141
+ "fetch",
142
+ "SearchResult",
143
+ {
144
+ "emit": {
145
+ "success": "SearchResultLoaded",
146
+ "failure": "SearchResultLoadFailed"
147
+ }
148
+ }
149
+ ],
140
150
  [
141
151
  "render-ui",
142
152
  "main",
143
153
  {
144
- "placeholder": "@config.placeholder",
145
154
  "event": "@config.event",
155
+ "placeholder": "@config.placeholder",
146
156
  "type": "search-input"
147
157
  }
148
158
  ]
@@ -158,8 +168,8 @@
158
168
  "SearchResult",
159
169
  {
160
170
  "emit": {
161
- "failure": "SearchResultLoadFailed",
162
- "success": "SearchResultLoaded"
171
+ "success": "SearchResultLoaded",
172
+ "failure": "SearchResultLoadFailed"
163
173
  }
164
174
  }
165
175
  ],
@@ -167,21 +177,21 @@
167
177
  "render-ui",
168
178
  "main",
169
179
  {
170
- "align": "center",
171
180
  "children": [
172
181
  {
173
- "placeholder": "@config.placeholder",
182
+ "type": "search-input",
174
183
  "event": "@config.event",
175
- "type": "search-input"
184
+ "placeholder": "@config.placeholder"
176
185
  },
177
186
  {
178
- "type": "spinner",
179
- "size": "sm"
187
+ "size": "sm",
188
+ "type": "spinner"
180
189
  }
181
190
  ],
191
+ "type": "stack",
182
192
  "direction": "horizontal",
183
193
  "gap": "sm",
184
- "type": "stack"
194
+ "align": "center"
185
195
  }
186
196
  ]
187
197
  ]
@@ -195,8 +205,8 @@
195
205
  "render-ui",
196
206
  "main",
197
207
  {
198
- "placeholder": "@config.placeholder",
199
208
  "event": "@config.event",
209
+ "placeholder": "@config.placeholder",
200
210
  "type": "search-input"
201
211
  }
202
212
  ]
@@ -211,22 +221,22 @@
211
221
  "render-ui",
212
222
  "main",
213
223
  {
224
+ "gap": "xs",
214
225
  "direction": "vertical",
215
226
  "type": "stack",
216
227
  "children": [
217
228
  {
218
- "placeholder": "@config.placeholder",
219
229
  "event": "@config.event",
230
+ "placeholder": "@config.placeholder",
220
231
  "type": "search-input"
221
232
  },
222
233
  {
223
- "type": "typography",
224
234
  "content": "@payload.error",
225
- "variant": "caption",
226
- "color": "error"
235
+ "type": "typography",
236
+ "color": "error",
237
+ "variant": "caption"
227
238
  }
228
- ],
229
- "gap": "xs"
239
+ ]
230
240
  }
231
241
  ]
232
242
  ]
@@ -250,21 +260,21 @@
250
260
  "render-ui",
251
261
  "main",
252
262
  {
253
- "align": "center",
254
- "gap": "sm",
255
- "direction": "horizontal",
256
- "type": "stack",
257
263
  "children": [
258
264
  {
259
- "type": "search-input",
260
265
  "placeholder": "@config.placeholder",
266
+ "type": "search-input",
261
267
  "event": "@config.event"
262
268
  },
263
269
  {
264
- "size": "sm",
265
- "type": "spinner"
270
+ "type": "spinner",
271
+ "size": "sm"
266
272
  }
267
- ]
273
+ ],
274
+ "type": "stack",
275
+ "gap": "sm",
276
+ "align": "center",
277
+ "direction": "horizontal"
268
278
  }
269
279
  ]
270
280
  ]
@@ -279,8 +289,8 @@
279
289
  "SearchResult",
280
290
  {
281
291
  "emit": {
282
- "failure": "SearchResultLoadFailed",
283
- "success": "SearchResultLoaded"
292
+ "success": "SearchResultLoaded",
293
+ "failure": "SearchResultLoadFailed"
284
294
  }
285
295
  }
286
296
  ],
@@ -288,7 +298,6 @@
288
298
  "render-ui",
289
299
  "main",
290
300
  {
291
- "type": "stack",
292
301
  "children": [
293
302
  {
294
303
  "placeholder": "@config.placeholder",
@@ -301,8 +310,9 @@
301
310
  }
302
311
  ],
303
312
  "direction": "horizontal",
304
- "align": "center",
305
- "gap": "sm"
313
+ "gap": "sm",
314
+ "type": "stack",
315
+ "align": "center"
306
316
  }
307
317
  ]
308
318
  ]
@@ -342,10 +352,7 @@
342
352
  "render-ui",
343
353
  "main",
344
354
  {
345
- "type": "stack",
346
355
  "direction": "horizontal",
347
- "gap": "sm",
348
- "align": "center",
349
356
  "children": [
350
357
  {
351
358
  "placeholder": "@config.placeholder",
@@ -356,7 +363,10 @@
356
363
  "type": "spinner",
357
364
  "size": "sm"
358
365
  }
359
- ]
366
+ ],
367
+ "gap": "sm",
368
+ "align": "center",
369
+ "type": "stack"
360
370
  }
361
371
  ]
362
372
  ]
@@ -364,13 +374,13 @@
364
374
  ]
365
375
  },
366
376
  "config": {
367
- "event": {
368
- "type": "string",
369
- "default": "SEARCH"
370
- },
371
377
  "placeholder": {
372
378
  "type": "string",
373
379
  "default": "Search…"
380
+ },
381
+ "event": {
382
+ "type": "string",
383
+ "default": "SEARCH"
374
384
  }
375
385
  },
376
386
  "scope": "collection"