sumba 2.48.0 → 2.49.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.
@@ -0,0 +1,26 @@
1
+ async function actionGuard () {
2
+ return {
3
+ common: {
4
+ widget: {
5
+ teamIds: {
6
+ attr: {
7
+ refUrl: 'waibuAdmin:/{prefix}/team/details?id={id}'
8
+ }
9
+ }
10
+ }
11
+ },
12
+ view: {
13
+ list: {
14
+ stat: {
15
+ aggregate: [
16
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
17
+ { fields: ['weight'], group: 'weight', aggregate: ['count'] },
18
+ { fields: ['allTeams'], group: 'allTeams', aggregate: ['count'] }
19
+ ]
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ export default actionGuard
@@ -8,6 +8,17 @@ async function anonymousGuard () {
8
8
  }
9
9
  }
10
10
  }
11
+ },
12
+ view: {
13
+ list: {
14
+ stat: {
15
+ aggregate: [
16
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
17
+ { fields: ['weight'], group: 'weight', aggregate: ['count'] },
18
+ { fields: ['allTeams'], group: 'allTeams', aggregate: ['count'] }
19
+ ]
20
+ }
21
+ }
11
22
  }
12
23
  }
13
24
  }
@@ -8,6 +8,17 @@ async function attribGuard () {
8
8
  }
9
9
  }
10
10
  }
11
+ },
12
+ view: {
13
+ list: {
14
+ stat: {
15
+ aggregate: [
16
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
17
+ { fields: ['weight'], group: 'weight', aggregate: ['count'] },
18
+ { fields: ['allTeams'], group: 'allTeams', aggregate: ['count'] }
19
+ ]
20
+ }
21
+ }
11
22
  }
12
23
  }
13
24
  }
@@ -0,0 +1,26 @@
1
+ async function queryGuard () {
2
+ return {
3
+ common: {
4
+ widget: {
5
+ teamIds: {
6
+ attr: {
7
+ refUrl: 'waibuAdmin:/{prefix}/team/details?id={id}'
8
+ }
9
+ }
10
+ }
11
+ },
12
+ view: {
13
+ list: {
14
+ stat: {
15
+ aggregate: [
16
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
17
+ { fields: ['weight'], group: 'weight', aggregate: ['count'] },
18
+ { fields: ['allTeams'], group: 'allTeams', aggregate: ['count'] }
19
+ ]
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ export default queryGuard
@@ -8,6 +8,17 @@ async function secureGuard () {
8
8
  }
9
9
  }
10
10
  }
11
+ },
12
+ view: {
13
+ list: {
14
+ stat: {
15
+ aggregate: [
16
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
17
+ { fields: ['weight'], group: 'weight', aggregate: ['count'] },
18
+ { fields: ['allTeams'], group: 'allTeams', aggregate: ['count'] }
19
+ ]
20
+ }
21
+ }
11
22
  }
12
23
  }
13
24
  }
@@ -9,6 +9,16 @@ async function site (req = {}) {
9
9
  { name: 'address', fields: ['address1:12', 'address2:12', 'city:6-md 8-sm', 'zipCode:2-md 4-sm', 'provinceState:4-md', 'country:6-md', 'phone:6-md', 'website:12'] },
10
10
  { name: 'socialMedia', fields: ['socX:3-md 6-sm', 'socInstagram:3-md 6-sm', 'socFacebook:3-md 6-sm', 'socLinkedIn:3-md 6-sm'] }
11
11
  ]
12
+ },
13
+ view: {
14
+ list: {
15
+ stat: {
16
+ aggregate: [
17
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
18
+ { fields: ['country'], group: 'country', aggregate: ['count'] }
19
+ ]
20
+ }
21
+ }
12
22
  }
13
23
  }
14
24
  return result
@@ -8,6 +8,11 @@ async function ticket () {
8
8
  col: '8-md'
9
9
  }
10
10
  },
11
+ message: {
12
+ attr: {
13
+ rows: 10
14
+ }
15
+ },
11
16
  cat: {
12
17
  addons: [{
13
18
  attr: {
@@ -25,6 +30,17 @@ async function ticket () {
25
30
  }
26
31
  }
27
32
  }
33
+ },
34
+ view: {
35
+ list: {
36
+ stat: {
37
+ aggregate: [
38
+ { fields: ['status'], group: 'status', aggregate: ['count'] },
39
+ { fields: ['cat'], group: 'cat', aggregate: ['count'] },
40
+ { fields: ['allTeams'], group: 'allTeams', aggregate: ['count'] }
41
+ ]
42
+ }
43
+ }
28
44
  }
29
45
  }
30
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.48.0",
3
+ "version": "2.49.0",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-11-05
4
+
5
+ - [2.49.0] Add stat widget on record lists
6
+
3
7
  ## 2026-11-03
4
8
 
5
9
  - [2.48.0] Add `dobo.adapter:beforeAggregate` hook