waibu-bootstrap 2.12.1 → 2.12.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.
@@ -18,7 +18,7 @@ export async function handleInput ({ handler, group } = {}) {
18
18
  const details = get(this, 'component.locals.error.details', [])
19
19
  const err = find(details, { field: group._.name })
20
20
  if (err) {
21
- errMsg = `\n<div class="invalid-feedback d-block">${err.error}</div>`
21
+ errMsg = `\n<div class="invalid-feedback d-block">${this.component.req.t(err.error)}</div>`
22
22
  }
23
23
  }
24
24
  $(`<div>${trim(this.params.html ?? '')}</div>`).find('[addon]').each(function () {
@@ -20,7 +20,7 @@ async function formSelectExt () {
20
20
  const { base64JsonDecode } = this.app.waibu
21
21
  const { req } = this.component
22
22
  let apiKey = ''
23
- if (req.user && this.app.sumba) apiKey = await this.app.sumba.getApiKeyFromUserId(req.user.id)
23
+ if (req.user && req.user.id && this.app.sumba) apiKey = await this.app.sumba.getApiKeyFromUserId(req.user.id)
24
24
  const xref = this.params.attr['x-ref'] ?? this.params.attr.name
25
25
  this.params.attr.id = this.params.attr.id ?? generateId('alpha')
26
26
  this.params.attr['x-ref'] = xref
@@ -12,7 +12,7 @@ async function toast () {
12
12
  const { isString, omit, has, get } = this.app.lib._
13
13
  const header = []
14
14
  if (this.params.attr.noHide) this.params.attr.dataBsAutohide = 'false'
15
- let delay = get(this, 'component.req.site.setting.waibuBootstrap.toastAutohideDelayDur', 5000)
15
+ let delay = get(this, 'component.req.site.setting.waibuBootstrap.toastAutohideDelayDur', 8000)
16
16
  if (has(this.params.attr, 'autohideDelay')) delay = Number(this.params.attr.autohideDelay) || delay
17
17
  this.params.attr.dataBsDelay = delay
18
18
  if (isString(this.params.attr.title)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "2.12.1",
3
+ "version": "2.12.3",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-06-11
4
+
5
+ - [2.12.3] Bug fix in ```form-select-ext``` widget
6
+
7
+ ## 2026-06-05
8
+
9
+ - [2.12.2] Bug fix in ```form-input``` widget
10
+ - [2.12.2] Bug fix in ```toast``` widget
11
+
3
12
  ## 2026-06-03
4
13
 
5
14
  - [2.12.1] Bug fix in ```_lib.getInputAttr()```