sumba 2.19.1 → 2.19.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.
@@ -12,7 +12,7 @@
12
12
  </c:card>
13
13
  <c:grid-row>
14
14
  <c:grid-col col="8-lg 6-md">
15
- <c:wdb-table responsive body-divider strip hover no-details-click />
15
+ <c:wdb-data-table responsive body-divider strip hover no-details-click />
16
16
  <c:div>
17
17
  <c:wdb-pagination />
18
18
  </c:div>
@@ -6,5 +6,5 @@
6
6
  <c:wdb-btn-add href="sumba:/help/trouble-tickets/add"/>
7
7
  </c:grid-col>
8
8
  </c:grid-row>
9
- <c:wdb-table responsive body-divider strip hover details-href="sumba:/help/trouble-tickets/details/:id" />
9
+ <c:wdb-data-table responsive body-divider strip hover details-href="sumba:/help/trouble-tickets/details/:id" />
10
10
  <!-- include waibuDb.partial:/crud/_list-footer.html -->
@@ -17,7 +17,8 @@ async function personInCharge (opts = {}) {
17
17
  }, {
18
18
  name: 'picEmail',
19
19
  type: 'string',
20
- maxLength: 50
20
+ maxLength: 50,
21
+ rules: ['email']
21
22
  }]
22
23
  }
23
24
  }
@@ -14,9 +14,6 @@ async function user ({ req } = {}) {
14
14
  }
15
15
  },
16
16
  widget: {
17
- country: {
18
- component: 'form-select-ext'
19
- },
20
17
  token: {
21
18
  component: 'form-plaintext'
22
19
  }
@@ -21,7 +21,7 @@ const resetUserPassword = {
21
21
  } catch (err) {
22
22
  throw this.error('validationError', { details: err.details, values: err.values, ns: this.ns, statusCode: 422, code: 'DB_VALIDATION' })
23
23
  }
24
- const rec = await model.findOneRecord({ query: { username: req.body.username } })
24
+ const rec = await model.findOneRecord({ query: { username: req.body.username } }, { req })
25
25
  if (!rec) throw this.error('unknownUser', { details: [{ field: 'username', error: 'unknownUser' }], statusCode: 400 })
26
26
  await model.updateRecord(rec.id, { password: req.body.password }, { req, reply })
27
27
  form.password = ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.19.1",
3
+ "version": "2.19.3",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-04-19
4
+
5
+ - [2.19.3] Update all widgets ```wdb-table``` to ```wdb-data-table```
6
+
7
+ ## 2026-04-18
8
+
9
+ - [2.19.2] Bug fix in ```sumba:personInCharge``` feature: add email rules
10
+ - [2.19.2] Bug fix in ```SumbaUser``` schema
11
+ - [2.19.2] Bug fix in ```reset-user-password``` route
12
+
3
13
  ## 2026-04-17
4
14
 
5
15
  - [2.19.1] Bug fix in profile edit's route