@almadar/std 13.12.0 → 13.13.0
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 +58 -42
- package/behaviors/registry/core/atoms/std-display.orb +3 -3
- package/behaviors/registry/core/atoms/std-filter.orb +9 -9
- package/behaviors/registry/core/atoms/std-graphs.orb +38 -38
- package/behaviors/registry/core/atoms/std-pagination.orb +17 -17
- package/behaviors/registry/core/atoms/std-search.orb +9 -9
- package/behaviors/registry/core/atoms/std-stats.orb +75 -75
- package/behaviors/registry/core/atoms/std-tabs.orb +22 -22
- package/behaviors/registry/core/molecules/std-dashboard.orb +51 -51
- package/behaviors/registry/core/molecules/std-stack-layout.orb +230 -0
- package/behaviors/registry/core/molecules/std-tabs-layout.orb +252 -0
- package/dist/behaviors/registry/core/atoms/std-browse.orb +58 -42
- package/dist/behaviors/registry/core/atoms/std-display.orb +3 -3
- package/dist/behaviors/registry/core/atoms/std-filter.orb +9 -9
- package/dist/behaviors/registry/core/atoms/std-graphs.orb +38 -38
- package/dist/behaviors/registry/core/atoms/std-pagination.orb +17 -17
- package/dist/behaviors/registry/core/atoms/std-search.orb +9 -9
- package/dist/behaviors/registry/core/atoms/std-stats.orb +75 -75
- package/dist/behaviors/registry/core/atoms/std-tabs.orb +22 -22
- package/dist/behaviors/registry/core/molecules/std-dashboard.orb +51 -51
- package/dist/behaviors/registry/core/molecules/std-stack-layout.orb +230 -0
- package/dist/behaviors/registry/core/molecules/std-tabs-layout.orb +252 -0
- package/package.json +1 -1
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "std-stack-layout",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "std-stack-layout — minimal vertical-stack shell (header + browse + pagination)",
|
|
5
|
+
"orbitals": [
|
|
6
|
+
{
|
|
7
|
+
"name": "StackLayoutItemOrbital",
|
|
8
|
+
"uses": [
|
|
9
|
+
{
|
|
10
|
+
"from": "std/behaviors/std-browse",
|
|
11
|
+
"as": "Browse"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"from": "std/behaviors/std-pagination",
|
|
15
|
+
"as": "Pagination"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"entity": {
|
|
19
|
+
"name": "StackLayoutItem",
|
|
20
|
+
"collection": "stacklayoutitems",
|
|
21
|
+
"persistence": "persistent",
|
|
22
|
+
"fields": [
|
|
23
|
+
{
|
|
24
|
+
"name": "id",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "name",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "description",
|
|
34
|
+
"type": "string"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"traits": [
|
|
39
|
+
{
|
|
40
|
+
"ref": "Browse.traits.BrowseItemBrowse",
|
|
41
|
+
"name": "StackLayoutBrowse",
|
|
42
|
+
"linkedEntity": "StackLayoutItem",
|
|
43
|
+
"config": {
|
|
44
|
+
"pageSize": 10.0,
|
|
45
|
+
"fields": [
|
|
46
|
+
{
|
|
47
|
+
"variant": "h5",
|
|
48
|
+
"label": "Name",
|
|
49
|
+
"name": "name"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"label": "Description",
|
|
53
|
+
"name": "description",
|
|
54
|
+
"variant": "caption"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"listens": [
|
|
59
|
+
{
|
|
60
|
+
"event": "PAGE",
|
|
61
|
+
"triggers": "REFETCH_PAGE",
|
|
62
|
+
"source": {
|
|
63
|
+
"kind": "trait",
|
|
64
|
+
"trait": "StackLayoutPagination"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"ref": "Pagination.traits.PagedItemPagination",
|
|
71
|
+
"name": "StackLayoutPagination",
|
|
72
|
+
"config": {
|
|
73
|
+
"event": "PAGE",
|
|
74
|
+
"pageSize": 10.0
|
|
75
|
+
},
|
|
76
|
+
"listens": [
|
|
77
|
+
{
|
|
78
|
+
"event": "BrowseItemLoaded",
|
|
79
|
+
"triggers": "ITEMS_LOADED",
|
|
80
|
+
"source": {
|
|
81
|
+
"kind": "trait",
|
|
82
|
+
"trait": "StackLayoutBrowse"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "StackLayout",
|
|
89
|
+
"category": "interaction",
|
|
90
|
+
"linkedEntity": "StackLayoutItem",
|
|
91
|
+
"emits": [
|
|
92
|
+
{
|
|
93
|
+
"event": "StackLayoutItemLoadFailed",
|
|
94
|
+
"scope": "internal",
|
|
95
|
+
"payloadSchema": [
|
|
96
|
+
{
|
|
97
|
+
"name": "error",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "code",
|
|
102
|
+
"type": "string"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"event": "StackLayoutItemLoaded",
|
|
108
|
+
"scope": "internal",
|
|
109
|
+
"payloadSchema": [
|
|
110
|
+
{
|
|
111
|
+
"name": "data",
|
|
112
|
+
"type": "[StackLayoutItem]"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"stateMachine": {
|
|
118
|
+
"states": [
|
|
119
|
+
{
|
|
120
|
+
"name": "composing",
|
|
121
|
+
"isInitial": true
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"events": [
|
|
125
|
+
{
|
|
126
|
+
"key": "INIT",
|
|
127
|
+
"name": "Initialize"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "StackLayoutItemLoadFailed",
|
|
131
|
+
"name": "StackLayoutItem load failed",
|
|
132
|
+
"payloadSchema": [
|
|
133
|
+
{
|
|
134
|
+
"name": "error",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "code",
|
|
139
|
+
"type": "string"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"key": "StackLayoutItemLoaded",
|
|
145
|
+
"name": "StackLayoutItem loaded",
|
|
146
|
+
"payloadSchema": [
|
|
147
|
+
{
|
|
148
|
+
"name": "data",
|
|
149
|
+
"type": "[StackLayoutItem]"
|
|
150
|
+
}
|
|
151
|
+
]
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
"transitions": [
|
|
155
|
+
{
|
|
156
|
+
"from": "composing",
|
|
157
|
+
"to": "composing",
|
|
158
|
+
"event": "INIT",
|
|
159
|
+
"effects": [
|
|
160
|
+
[
|
|
161
|
+
"fetch",
|
|
162
|
+
"StackLayoutItem",
|
|
163
|
+
{
|
|
164
|
+
"emit": {
|
|
165
|
+
"success": "StackLayoutItemLoaded",
|
|
166
|
+
"failure": "StackLayoutItemLoadFailed"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
[
|
|
171
|
+
"render-ui",
|
|
172
|
+
"main",
|
|
173
|
+
{
|
|
174
|
+
"type": "stack",
|
|
175
|
+
"children": [
|
|
176
|
+
{
|
|
177
|
+
"direction": "horizontal",
|
|
178
|
+
"align": "center",
|
|
179
|
+
"gap": "sm",
|
|
180
|
+
"type": "stack",
|
|
181
|
+
"children": [
|
|
182
|
+
{
|
|
183
|
+
"type": "icon",
|
|
184
|
+
"name": "list"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"content": "List",
|
|
188
|
+
"type": "typography",
|
|
189
|
+
"variant": "h2"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"type": "divider"
|
|
195
|
+
},
|
|
196
|
+
"@trait.StackLayoutBrowse",
|
|
197
|
+
"@trait.StackLayoutPagination"
|
|
198
|
+
],
|
|
199
|
+
"gap": "md",
|
|
200
|
+
"className": "max-w-5xl mx-auto w-full",
|
|
201
|
+
"direction": "vertical"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
},
|
|
208
|
+
"scope": "collection"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"pages": [
|
|
212
|
+
{
|
|
213
|
+
"name": "StackLayoutPage",
|
|
214
|
+
"path": "/stack-layout",
|
|
215
|
+
"traits": [
|
|
216
|
+
{
|
|
217
|
+
"ref": "StackLayout"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"ref": "StackLayoutBrowse"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"ref": "StackLayoutPagination"
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "std-tabs-layout",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "std-tabs-layout — generic tab-navigation shell (tabs strip + 2 swappable panels)",
|
|
5
|
+
"orbitals": [
|
|
6
|
+
{
|
|
7
|
+
"name": "TabsLayoutItemOrbital",
|
|
8
|
+
"uses": [
|
|
9
|
+
{
|
|
10
|
+
"from": "std/behaviors/std-tabs",
|
|
11
|
+
"as": "Tabs"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"from": "std/behaviors/std-browse",
|
|
15
|
+
"as": "Browse"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"entity": {
|
|
19
|
+
"name": "TabsLayoutItem",
|
|
20
|
+
"collection": "tabslayoutitems",
|
|
21
|
+
"persistence": "persistent",
|
|
22
|
+
"fields": [
|
|
23
|
+
{
|
|
24
|
+
"name": "id",
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "name",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "description",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "status",
|
|
38
|
+
"type": "string",
|
|
39
|
+
"default": "active",
|
|
40
|
+
"values": [
|
|
41
|
+
"active",
|
|
42
|
+
"inactive"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"traits": [
|
|
48
|
+
{
|
|
49
|
+
"ref": "Tabs.traits.TabsItemTabs",
|
|
50
|
+
"name": "TabsLayoutTabs",
|
|
51
|
+
"config": {
|
|
52
|
+
"defaultTab": "all",
|
|
53
|
+
"tabs": [
|
|
54
|
+
{
|
|
55
|
+
"label": "All",
|
|
56
|
+
"content": "@trait.TabsLayoutAllBrowse",
|
|
57
|
+
"id": "all"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"content": "@trait.TabsLayoutActiveBrowse",
|
|
61
|
+
"id": "active",
|
|
62
|
+
"label": "Active"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"ref": "Browse.traits.BrowseItemBrowse",
|
|
69
|
+
"name": "TabsLayoutAllBrowse",
|
|
70
|
+
"linkedEntity": "TabsLayoutItem",
|
|
71
|
+
"config": {
|
|
72
|
+
"fields": [
|
|
73
|
+
{
|
|
74
|
+
"label": "Name",
|
|
75
|
+
"variant": "h5",
|
|
76
|
+
"name": "name"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": "Description",
|
|
80
|
+
"name": "description",
|
|
81
|
+
"variant": "caption"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"pageSize": 10.0
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"ref": "Browse.traits.BrowseItemBrowse",
|
|
89
|
+
"name": "TabsLayoutActiveBrowse",
|
|
90
|
+
"linkedEntity": "TabsLayoutItem",
|
|
91
|
+
"config": {
|
|
92
|
+
"pageSize": 10.0,
|
|
93
|
+
"fields": [
|
|
94
|
+
{
|
|
95
|
+
"name": "name",
|
|
96
|
+
"label": "Name",
|
|
97
|
+
"variant": "h5"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "description",
|
|
101
|
+
"label": "Description",
|
|
102
|
+
"variant": "caption"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "TabsLayout",
|
|
109
|
+
"category": "interaction",
|
|
110
|
+
"linkedEntity": "TabsLayoutItem",
|
|
111
|
+
"emits": [
|
|
112
|
+
{
|
|
113
|
+
"event": "TabsLayoutItemLoadFailed",
|
|
114
|
+
"scope": "internal",
|
|
115
|
+
"payloadSchema": [
|
|
116
|
+
{
|
|
117
|
+
"name": "error",
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "code",
|
|
122
|
+
"type": "string"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"event": "TabsLayoutItemLoaded",
|
|
128
|
+
"scope": "internal",
|
|
129
|
+
"payloadSchema": [
|
|
130
|
+
{
|
|
131
|
+
"name": "data",
|
|
132
|
+
"type": "[TabsLayoutItem]"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"stateMachine": {
|
|
138
|
+
"states": [
|
|
139
|
+
{
|
|
140
|
+
"name": "composing",
|
|
141
|
+
"isInitial": true
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"events": [
|
|
145
|
+
{
|
|
146
|
+
"key": "INIT",
|
|
147
|
+
"name": "Initialize"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"key": "TabsLayoutItemLoadFailed",
|
|
151
|
+
"name": "TabsLayoutItem load failed",
|
|
152
|
+
"payloadSchema": [
|
|
153
|
+
{
|
|
154
|
+
"name": "error",
|
|
155
|
+
"type": "string"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "code",
|
|
159
|
+
"type": "string"
|
|
160
|
+
}
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"key": "TabsLayoutItemLoaded",
|
|
165
|
+
"name": "TabsLayoutItem loaded",
|
|
166
|
+
"payloadSchema": [
|
|
167
|
+
{
|
|
168
|
+
"name": "data",
|
|
169
|
+
"type": "[TabsLayoutItem]"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"transitions": [
|
|
175
|
+
{
|
|
176
|
+
"from": "composing",
|
|
177
|
+
"to": "composing",
|
|
178
|
+
"event": "INIT",
|
|
179
|
+
"effects": [
|
|
180
|
+
[
|
|
181
|
+
"fetch",
|
|
182
|
+
"TabsLayoutItem",
|
|
183
|
+
{
|
|
184
|
+
"emit": {
|
|
185
|
+
"success": "TabsLayoutItemLoaded",
|
|
186
|
+
"failure": "TabsLayoutItemLoadFailed"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
[
|
|
191
|
+
"render-ui",
|
|
192
|
+
"main",
|
|
193
|
+
{
|
|
194
|
+
"direction": "vertical",
|
|
195
|
+
"className": "max-w-6xl mx-auto w-full",
|
|
196
|
+
"type": "stack",
|
|
197
|
+
"gap": "md",
|
|
198
|
+
"children": [
|
|
199
|
+
{
|
|
200
|
+
"align": "center",
|
|
201
|
+
"direction": "horizontal",
|
|
202
|
+
"gap": "sm",
|
|
203
|
+
"type": "stack",
|
|
204
|
+
"children": [
|
|
205
|
+
{
|
|
206
|
+
"type": "icon",
|
|
207
|
+
"name": "layout"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "typography",
|
|
211
|
+
"variant": "h2",
|
|
212
|
+
"content": "Tabbed View"
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"type": "divider"
|
|
218
|
+
},
|
|
219
|
+
"@trait.TabsLayoutTabs"
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
]
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"scope": "collection"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"pages": [
|
|
231
|
+
{
|
|
232
|
+
"name": "TabsLayoutPage",
|
|
233
|
+
"path": "/tabs-layout",
|
|
234
|
+
"traits": [
|
|
235
|
+
{
|
|
236
|
+
"ref": "TabsLayout"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"ref": "TabsLayoutTabs"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"ref": "TabsLayoutAllBrowse"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"ref": "TabsLayoutActiveBrowse"
|
|
246
|
+
}
|
|
247
|
+
]
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
]
|
|
252
|
+
}
|
|
@@ -171,11 +171,11 @@
|
|
|
171
171
|
"fetch",
|
|
172
172
|
"BrowseItem",
|
|
173
173
|
{
|
|
174
|
+
"limit": "@config.pageSize",
|
|
174
175
|
"emit": {
|
|
175
|
-
"
|
|
176
|
-
"
|
|
176
|
+
"success": "BrowseItemLoaded",
|
|
177
|
+
"failure": "BrowseItemLoadFailed"
|
|
177
178
|
},
|
|
178
|
-
"limit": "@config.pageSize",
|
|
179
179
|
"offset": 0.0
|
|
180
180
|
}
|
|
181
181
|
],
|
|
@@ -198,16 +198,16 @@
|
|
|
198
198
|
"render-ui",
|
|
199
199
|
"main",
|
|
200
200
|
{
|
|
201
|
+
"type": "stack",
|
|
202
|
+
"direction": "vertical",
|
|
201
203
|
"children": [
|
|
202
204
|
{
|
|
203
|
-
"
|
|
205
|
+
"pageSize": "@config.displayPageSize",
|
|
204
206
|
"type": "data-grid",
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
+
"fields": "@config.fields",
|
|
208
|
+
"entity": "@payload.data"
|
|
207
209
|
}
|
|
208
|
-
]
|
|
209
|
-
"direction": "vertical",
|
|
210
|
-
"type": "stack"
|
|
210
|
+
]
|
|
211
211
|
}
|
|
212
212
|
]
|
|
213
213
|
]
|
|
@@ -222,9 +222,9 @@
|
|
|
222
222
|
"main",
|
|
223
223
|
{
|
|
224
224
|
"variant": "caption",
|
|
225
|
-
"
|
|
225
|
+
"content": "@payload.error",
|
|
226
226
|
"type": "typography",
|
|
227
|
-
"
|
|
227
|
+
"color": "error"
|
|
228
228
|
}
|
|
229
229
|
]
|
|
230
230
|
]
|
|
@@ -239,19 +239,19 @@
|
|
|
239
239
|
"BrowseItem",
|
|
240
240
|
{
|
|
241
241
|
"limit": "@config.pageSize",
|
|
242
|
+
"offset": 0.0,
|
|
242
243
|
"emit": {
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
}
|
|
246
|
-
"offset": 0.0
|
|
244
|
+
"failure": "BrowseItemLoadFailed",
|
|
245
|
+
"success": "BrowseItemLoaded"
|
|
246
|
+
}
|
|
247
247
|
}
|
|
248
248
|
],
|
|
249
249
|
[
|
|
250
250
|
"render-ui",
|
|
251
251
|
"main",
|
|
252
252
|
{
|
|
253
|
-
"
|
|
254
|
-
"
|
|
253
|
+
"size": "sm",
|
|
254
|
+
"type": "spinner"
|
|
255
255
|
}
|
|
256
256
|
]
|
|
257
257
|
]
|
|
@@ -266,11 +266,6 @@
|
|
|
266
266
|
"BrowseItem",
|
|
267
267
|
{
|
|
268
268
|
"offset": 0.0,
|
|
269
|
-
"limit": "@config.pageSize",
|
|
270
|
-
"emit": {
|
|
271
|
-
"success": "BrowseItemLoaded",
|
|
272
|
-
"failure": "BrowseItemLoadFailed"
|
|
273
|
-
},
|
|
274
269
|
"filter": [
|
|
275
270
|
"or",
|
|
276
271
|
[
|
|
@@ -287,7 +282,12 @@
|
|
|
287
282
|
],
|
|
288
283
|
"@payload.searchTerm"
|
|
289
284
|
]
|
|
290
|
-
]
|
|
285
|
+
],
|
|
286
|
+
"emit": {
|
|
287
|
+
"success": "BrowseItemLoaded",
|
|
288
|
+
"failure": "BrowseItemLoadFailed"
|
|
289
|
+
},
|
|
290
|
+
"limit": "@config.pageSize"
|
|
291
291
|
}
|
|
292
292
|
]
|
|
293
293
|
]
|
|
@@ -302,9 +302,10 @@
|
|
|
302
302
|
"BrowseItem",
|
|
303
303
|
{
|
|
304
304
|
"emit": {
|
|
305
|
-
"
|
|
306
|
-
"
|
|
305
|
+
"failure": "BrowseItemLoadFailed",
|
|
306
|
+
"success": "BrowseItemLoaded"
|
|
307
307
|
},
|
|
308
|
+
"limit": "@config.pageSize",
|
|
308
309
|
"offset": 0.0,
|
|
309
310
|
"filter": [
|
|
310
311
|
"or",
|
|
@@ -322,8 +323,7 @@
|
|
|
322
323
|
],
|
|
323
324
|
"@payload.value"
|
|
324
325
|
]
|
|
325
|
-
]
|
|
326
|
-
"limit": "@config.pageSize"
|
|
326
|
+
]
|
|
327
327
|
}
|
|
328
328
|
]
|
|
329
329
|
]
|
|
@@ -337,6 +337,11 @@
|
|
|
337
337
|
"fetch",
|
|
338
338
|
"BrowseItem",
|
|
339
339
|
{
|
|
340
|
+
"limit": "@config.pageSize",
|
|
341
|
+
"emit": {
|
|
342
|
+
"failure": "BrowseItemLoadFailed",
|
|
343
|
+
"success": "BrowseItemLoaded"
|
|
344
|
+
},
|
|
340
345
|
"offset": [
|
|
341
346
|
"*",
|
|
342
347
|
[
|
|
@@ -345,12 +350,7 @@
|
|
|
345
350
|
1.0
|
|
346
351
|
],
|
|
347
352
|
"@config.pageSize"
|
|
348
|
-
]
|
|
349
|
-
"limit": "@config.pageSize",
|
|
350
|
-
"emit": {
|
|
351
|
-
"success": "BrowseItemLoaded",
|
|
352
|
-
"failure": "BrowseItemLoadFailed"
|
|
353
|
-
}
|
|
353
|
+
]
|
|
354
354
|
}
|
|
355
355
|
]
|
|
356
356
|
]
|
|
@@ -364,16 +364,16 @@
|
|
|
364
364
|
"render-ui",
|
|
365
365
|
"main",
|
|
366
366
|
{
|
|
367
|
+
"type": "stack",
|
|
367
368
|
"direction": "vertical",
|
|
368
369
|
"children": [
|
|
369
370
|
{
|
|
370
|
-
"
|
|
371
|
-
"fields": "@config.fields",
|
|
371
|
+
"entity": "@payload.data",
|
|
372
372
|
"pageSize": "@config.displayPageSize",
|
|
373
|
-
"
|
|
373
|
+
"type": "data-grid",
|
|
374
|
+
"fields": "@config.fields"
|
|
374
375
|
}
|
|
375
|
-
]
|
|
376
|
-
"type": "stack"
|
|
376
|
+
]
|
|
377
377
|
}
|
|
378
378
|
]
|
|
379
379
|
]
|
|
@@ -387,8 +387,8 @@
|
|
|
387
387
|
"fetch",
|
|
388
388
|
"BrowseItem",
|
|
389
389
|
{
|
|
390
|
-
"offset": 0.0,
|
|
391
390
|
"limit": "@config.pageSize",
|
|
391
|
+
"offset": 0.0,
|
|
392
392
|
"emit": {
|
|
393
393
|
"failure": "BrowseItemLoadFailed",
|
|
394
394
|
"success": "BrowseItemLoaded"
|
|
@@ -410,15 +410,31 @@
|
|
|
410
410
|
"config": {
|
|
411
411
|
"displayPageSize": {
|
|
412
412
|
"type": "number",
|
|
413
|
-
"default":
|
|
413
|
+
"default": 10.0
|
|
414
414
|
},
|
|
415
415
|
"fields": {
|
|
416
416
|
"type": "[object]",
|
|
417
|
-
"default": [
|
|
417
|
+
"default": [
|
|
418
|
+
{
|
|
419
|
+
"variant": "h4",
|
|
420
|
+
"name": "name",
|
|
421
|
+
"label": "Name"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"variant": "caption",
|
|
425
|
+
"name": "description",
|
|
426
|
+
"label": "Description"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"label": "Status",
|
|
430
|
+
"name": "status",
|
|
431
|
+
"variant": "badge"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
418
434
|
},
|
|
419
435
|
"pageSize": {
|
|
420
436
|
"type": "number",
|
|
421
|
-
"default":
|
|
437
|
+
"default": 10.0
|
|
422
438
|
}
|
|
423
439
|
},
|
|
424
440
|
"scope": "collection"
|