@almadar/std 13.0.7 → 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.
@@ -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
- "failure": "SearchResultLoadFailed",
189
- "success": "SearchResultLoaded"
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
- "type": "spinner",
206
- "size": "sm"
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
- "type": "stack"
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
- "type": "spinner",
292
- "size": "sm"
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
- "type": "spinner",
326
- "size": "sm"
327
+ "size": "sm",
328
+ "type": "spinner"
327
329
  }
328
330
  ],
329
- "direction": "horizontal",
330
331
  "type": "stack",
331
- "align": "center",
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
- "failure": "SearchResultLoadFailed",
364
- "success": "SearchResultLoaded"
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
- "type": "spinner",
384
- "size": "sm"
385
+ "size": "sm",
386
+ "type": "spinner"
385
387
  }
386
388
  ]
387
389
  }
@@ -59,8 +59,8 @@
59
59
  "name": "FilteredItemSearch",
60
60
  "linkedEntity": "FilteredListItem",
61
61
  "config": {
62
- "placeholder": "Search filtered items…",
63
- "event": "SEARCH"
62
+ "event": "SEARCH",
63
+ "placeholder": "Search filtered items…"
64
64
  }
65
65
  },
66
66
  {
@@ -71,14 +71,14 @@
71
71
  "event": "FILTER",
72
72
  "filters": [
73
73
  {
74
- "label": "Status",
75
- "filterType": "select",
74
+ "field": "status",
76
75
  "options": [
77
76
  "active",
78
77
  "inactive",
79
78
  "pending"
80
79
  ],
81
- "field": "status"
80
+ "label": "Status",
81
+ "filterType": "select"
82
82
  }
83
83
  ]
84
84
  }
@@ -90,19 +90,19 @@
90
90
  "config": {
91
91
  "fields": [
92
92
  {
93
- "name": "name",
94
93
  "label": "Name",
95
- "variant": "h4"
94
+ "variant": "h4",
95
+ "name": "name"
96
96
  },
97
97
  {
98
+ "variant": "caption",
98
99
  "name": "description",
99
- "label": "Description",
100
- "variant": "caption"
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
  },
@@ -138,8 +138,8 @@
138
138
  "name": "FilteredItemPagination",
139
139
  "linkedEntity": "FilteredListItem",
140
140
  "config": {
141
- "event": "PAGE",
142
- "totalPages": 10.0
141
+ "totalPages": 10.0,
142
+ "event": "PAGE"
143
143
  }
144
144
  },
145
145
  {
@@ -229,43 +229,43 @@
229
229
  "render-ui",
230
230
  "main",
231
231
  {
232
- "gap": "md",
233
- "direction": "vertical",
234
- "className": "max-w-5xl mx-auto w-full",
235
232
  "children": [
236
233
  {
237
- "type": "stack",
234
+ "direction": "horizontal",
235
+ "gap": "sm",
236
+ "align": "center",
238
237
  "children": [
239
238
  {
240
239
  "name": "list",
241
240
  "type": "icon"
242
241
  },
243
242
  {
243
+ "variant": "h2",
244
244
  "content": "Filtered List",
245
- "type": "typography",
246
- "variant": "h2"
245
+ "type": "typography"
247
246
  }
248
247
  ],
249
- "gap": "sm",
250
- "direction": "horizontal",
251
- "align": "center"
248
+ "type": "stack"
252
249
  },
253
250
  {
254
251
  "type": "divider"
255
252
  },
256
253
  {
257
254
  "type": "stack",
255
+ "gap": "sm",
258
256
  "direction": "horizontal",
259
257
  "children": [
260
258
  "@trait.FilteredItemSearch",
261
259
  "@trait.FilteredItemFilter"
262
- ],
263
- "gap": "sm"
260
+ ]
264
261
  },
265
262
  "@trait.FilteredItemBrowse",
266
263
  "@trait.FilteredItemPagination"
267
264
  ],
268
- "type": "stack"
265
+ "type": "stack",
266
+ "className": "max-w-5xl mx-auto w-full",
267
+ "gap": "md",
268
+ "direction": "vertical"
269
269
  }
270
270
  ]
271
271
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "13.0.7",
3
+ "version": "13.0.8",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",