@almadar/std 13.0.1 → 13.0.3

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "std-filtered-list",
3
3
  "version": "1.0.0",
4
- "description": "std-filtered-list as a Function",
4
+ "description": "std-filtered-list molecule composing slim Search/Filter/Browse/Pagination atoms",
5
5
  "orbitals": [
6
6
  {
7
7
  "name": "FilteredListItemOrbital",
@@ -51,22 +51,90 @@
51
51
  {
52
52
  "ref": "Search.traits.SearchResultSearch",
53
53
  "name": "FilteredItemSearch",
54
- "linkedEntity": "FilteredListItem"
54
+ "linkedEntity": "FilteredListItem",
55
+ "config": {
56
+ "placeholder": "Search filtered items…",
57
+ "event": "SEARCH"
58
+ }
55
59
  },
56
60
  {
57
61
  "ref": "Filter.traits.FilterTargetFilter",
58
62
  "name": "FilteredItemFilter",
59
- "linkedEntity": "FilteredListItem"
63
+ "linkedEntity": "FilteredListItem",
64
+ "config": {
65
+ "event": "FILTER",
66
+ "filters": [
67
+ {
68
+ "field": "status",
69
+ "label": "Status",
70
+ "options": [
71
+ "active",
72
+ "inactive",
73
+ "pending"
74
+ ],
75
+ "filterType": "select"
76
+ }
77
+ ]
78
+ }
60
79
  },
61
80
  {
62
81
  "ref": "Browse.traits.BrowseItemBrowse",
63
82
  "name": "FilteredItemBrowse",
64
- "linkedEntity": "FilteredListItem"
83
+ "linkedEntity": "FilteredListItem",
84
+ "config": {
85
+ "fields": [
86
+ {
87
+ "name": "name",
88
+ "label": "Name",
89
+ "variant": "h4"
90
+ },
91
+ {
92
+ "name": "description",
93
+ "label": "Description",
94
+ "variant": "caption"
95
+ },
96
+ {
97
+ "variant": "badge",
98
+ "label": "Status",
99
+ "name": "status"
100
+ }
101
+ ]
102
+ },
103
+ "listens": [
104
+ {
105
+ "event": "SearchResultLoaded",
106
+ "triggers": "INIT",
107
+ "source": {
108
+ "kind": "trait",
109
+ "trait": "FilteredItemSearch"
110
+ }
111
+ },
112
+ {
113
+ "event": "FilterTargetLoaded",
114
+ "triggers": "INIT",
115
+ "source": {
116
+ "kind": "trait",
117
+ "trait": "FilteredItemFilter"
118
+ }
119
+ },
120
+ {
121
+ "event": "PagedItemLoaded",
122
+ "triggers": "INIT",
123
+ "source": {
124
+ "kind": "trait",
125
+ "trait": "FilteredItemPagination"
126
+ }
127
+ }
128
+ ]
65
129
  },
66
130
  {
67
131
  "ref": "Pagination.traits.PagedItemPagination",
68
132
  "name": "FilteredItemPagination",
69
- "linkedEntity": "FilteredListItem"
133
+ "linkedEntity": "FilteredListItem",
134
+ "config": {
135
+ "totalPages": 10.0,
136
+ "event": "PAGE"
137
+ }
70
138
  },
71
139
  {
72
140
  "name": "FilteredListLayout",
@@ -155,23 +223,43 @@
155
223
  "render-ui",
156
224
  "main",
157
225
  {
158
- "type": "stack",
159
226
  "className": "max-w-5xl mx-auto w-full",
160
- "gap": "md",
227
+ "direction": "vertical",
161
228
  "children": [
162
229
  {
163
230
  "type": "stack",
231
+ "direction": "horizontal",
232
+ "align": "center",
233
+ "gap": "sm",
234
+ "children": [
235
+ {
236
+ "name": "list",
237
+ "type": "icon"
238
+ },
239
+ {
240
+ "content": "Filtered List",
241
+ "type": "typography",
242
+ "variant": "h2"
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ "type": "divider"
248
+ },
249
+ {
250
+ "type": "stack",
251
+ "direction": "horizontal",
164
252
  "children": [
165
253
  "@trait.FilteredItemSearch",
166
254
  "@trait.FilteredItemFilter"
167
255
  ],
168
- "gap": "sm",
169
- "direction": "horizontal"
256
+ "gap": "sm"
170
257
  },
171
258
  "@trait.FilteredItemBrowse",
172
259
  "@trait.FilteredItemPagination"
173
260
  ],
174
- "direction": "vertical"
261
+ "gap": "md",
262
+ "type": "stack"
175
263
  }
176
264
  ]
177
265
  ]