sumba 2.3.0 → 2.4.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.
@@ -109,7 +109,12 @@
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
+ "statusUnverified": "Unverified",
114
+ "statusActive": "Active",
115
+ "statusInactive": "Inactive",
116
+ "siteSetting": "Site Settings",
117
+ "validCountryCodeRequired": "Value must be one of valid country codes",
113
118
  "field": {
114
119
  "currentPassword": "Current Password",
115
120
  "newPassword": "New Password",
@@ -130,7 +135,9 @@
130
135
  "socLinkedIn": "LinkedIn",
131
136
  "size": "Size",
132
137
  "user": "User",
133
- "team": "Team"
138
+ "team": "Team",
139
+ "ns": "Module's Namespace",
140
+ "value": "Value"
134
141
  },
135
142
  "validation": {
136
143
  "password": {
@@ -110,6 +110,12 @@
110
110
  "downloadList": "Daftar Unduh",
111
111
  "manageDownload": "Kelola Unduhan",
112
112
  "userSession": "Sesi Pengguna",
113
+ "XHandler": "Akun Twitter/X",
114
+ "statusUnverified": "Belum Terverifikasi",
115
+ "statusActive": "Aktif",
116
+ "statusInactive": "Non Aktif",
117
+ "siteSetting": "Setelan Situs",
118
+ "validCountryCodeRequired": "Nilai harus salah satu dari kode negara yang berlaku",
113
119
  "field": {
114
120
  "currentPassword": "Kata Sandi Saat Ini",
115
121
  "newPassword": "Kata Sandi Baru",
@@ -130,7 +136,9 @@
130
136
  "socLinkedIn": "LinkedIn",
131
137
  "size": "Besaran",
132
138
  "user": "Pengguna",
133
- "team": "Tim"
139
+ "team": "Tim",
140
+ "ns": "Ruang Nama Modul",
141
+ "value": "Value"
134
142
  },
135
143
  "validation": {
136
144
  "password": {
@@ -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',
@@ -6,7 +6,9 @@ async function country (opts = {}) {
6
6
  type: 'string',
7
7
  maxLength: 2,
8
8
  index: opts.index ?? true,
9
- rules: ['uppercase', { rule: 'length', params: 2 }]
9
+ values: 'sumba:getCountriesValues',
10
+ rules: ['uppercase', { rule: 'length', params: 2 }],
11
+ rulesMsg: { 'any.only': 'validCountryCodeRequired' }
10
12
  }],
11
13
  rules: [{ rule: 'trim', fields: [opts.fieldName] }]
12
14
  }
@@ -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
  },
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "widget": {
10
10
  "country": {
11
- "component": "form-select-country"
11
+ "component": "form-select-ext"
12
12
  }
13
13
  }
14
14
  },
package/index.js CHANGED
@@ -534,6 +534,13 @@ async function factory (pkgName) {
534
534
  const resp = await this.app.dobo.getModel('SumbaUser').getRecord(id, options)
535
535
  return await hash(resp.salt)
536
536
  }
537
+
538
+ getCountriesValues = async () => {
539
+ const { getModel } = this.app.dobo
540
+ const model = getModel('CdbCountry')
541
+ const items = await model.findAllRecord()
542
+ return items.map(item => ({ value: item.id, text: item.name }))
543
+ }
537
544
  }
538
545
 
539
546
  return Sumba
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "bajo": {
12
12
  "type": "plugin",
13
13
  "alias": "sumba",
14
- "dependencies": ["bajo-extra", "bajo-common-db"]
14
+ "dependencies": ["bajo-extra", "bajo-common-db", "dobo"]
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -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
@@ -1,5 +1,11 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-02-20
4
+
5
+ - [2.4.0] Add ```getCountriesValues()```
6
+ - [2.4.0] Update ```sumba:country``` feature to use ```prop.values``` as a handler
7
+ - [2.4.0] No longer use the removed ```FormSelectCountry```, instead use ```FormSelectExt```
8
+
3
9
  ## 2026-02-17
4
10
 
5
11
  - [2.3.0] Add admin menu links to ```siteSetting```
@@ -7,6 +13,8 @@
7
13
  - [2.3.0] Add unique index on model ```SumbaSiteSetting```
8
14
  - [2.3.0] Add admin subroute to manage site setting
9
15
  - [2.3.0] Bug fix on ```req.theme``` and ```req.iconset``` resolver
16
+ - [2.3.1] Update translations
17
+ - [2.3.1] Bug fix on ```sumba:country``` feature
10
18
 
11
19
  ## 2026-02-09
12
20