sumba 2.3.0 → 2.3.1

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.
@@ -109,7 +109,10 @@
109
109
  "downloadList": "Download List",
110
110
  "manageDownload": "Manage Download",
111
111
  "userSession": "User Session",
112
- "XHandler": "Twitter Account",
112
+ "XHandler": "Twitter/X Account",
113
+ "unverified": "Unverified",
114
+ "active": "Active",
115
+ "inactive": "Inactive",
113
116
  "field": {
114
117
  "currentPassword": "Current Password",
115
118
  "newPassword": "New Password",
@@ -110,6 +110,10 @@
110
110
  "downloadList": "Daftar Unduh",
111
111
  "manageDownload": "Kelola Unduhan",
112
112
  "userSession": "Sesi Pengguna",
113
+ "XHandler": "Akun Twitter/X",
114
+ "unverified": "Belum Terverifikasi",
115
+ "active": "Aktif",
116
+ "inactive": "Non Aktif",
113
117
  "field": {
114
118
  "currentPassword": "Kata Sandi Saat Ini",
115
119
  "newPassword": "Kata Sandi Baru",
@@ -23,10 +23,7 @@ async function address (opts = {}) {
23
23
  index: true
24
24
  }, {
25
25
  name: 'country',
26
- type: 'string',
27
- maxLength: 2,
28
- index: true,
29
- rules: ['uppercase', { rule: 'length', params: 2 }]
26
+ type: 'sumba:country'
30
27
  }, {
31
28
  name: 'phone',
32
29
  type: 'string',
@@ -1,11 +1,15 @@
1
1
  async function country (opts = {}) {
2
+ const { readConfig } = this.app.bajo
2
3
  opts.fieldName = opts.fieldName ?? 'country'
4
+ const countries = await readConfig('bajoCommonDb:/extend/dobo/fixture/country.json', { ignoreError: true, defValue: [] })
5
+ const values = countries.map(item => ({ value: item.id, text: item.name.replaceAll('\'', '') }))
3
6
  return {
4
7
  properties: [{
5
8
  name: opts.fieldName,
6
9
  type: 'string',
7
10
  maxLength: 2,
8
11
  index: opts.index ?? true,
12
+ values,
9
13
  rules: ['uppercase', { rule: 'length', params: 2 }]
10
14
  }],
11
15
  rules: [{ rule: 'trim', fields: [opts.fieldName] }]
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "widget": {
12
12
  "country": {
13
- "component": "form-select-country"
13
+ "component": "form-select-ext"
14
14
  }
15
15
  }
16
16
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@
20
20
  "keywords": [
21
21
  "sumba",
22
22
  "bajo",
23
+ "bajoCommonDb",
23
24
  "framework",
24
25
  "addons",
25
26
  "multidomain"
package/wiki/CHANGES.md CHANGED
@@ -7,6 +7,8 @@
7
7
  - [2.3.0] Add unique index on model ```SumbaSiteSetting```
8
8
  - [2.3.0] Add admin subroute to manage site setting
9
9
  - [2.3.0] Bug fix on ```req.theme``` and ```req.iconset``` resolver
10
+ - [2.3.1] Update translations
11
+ - [2.3.1] Bug fix on ```sumba:country``` feature
10
12
 
11
13
  ## 2026-02-09
12
14