waibu-bootstrap 2.12.1 → 2.12.2

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 () {
@@ -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.2",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-06-05
4
+
5
+ - [2.12.2] Bug fix in ```form-input``` widget
6
+ - [2.12.2] Bug fix in ```toast``` widget
7
+
3
8
  ## 2026-06-03
4
9
 
5
10
  - [2.12.1] Bug fix in ```_lib.getInputAttr()```