waibu-bootstrap 2.9.1 → 2.10.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.
@@ -5,7 +5,7 @@ export const fstyles = ['italic', 'normal']
5
5
  export const heights = ['1', 'sm', 'base', 'lg']
6
6
  export const cvariants = ['emphasis', 'secondary', 'tertiary']
7
7
  export const cbgvariants = ['subtle']
8
- export const opacities = ['0', '25', '50', '75', '100']
8
+ export const opacities = ['10', '25', '50', '75', '100']
9
9
  export const aligns = ['top', 'bottom', 'start', 'end', 'middle']
10
10
  export const dirs = ['up', 'down', 'start', 'end']
11
11
  export const widths = ['0', '1', '2', '3', '4', '5']
@@ -10,7 +10,7 @@ async function drawer () {
10
10
  }
11
11
 
12
12
  build = async () => {
13
- const { isString, omit, trim } = this.app.lib._
13
+ const { isString, omit, trim, get } = this.app.lib._
14
14
  const { groupAttrs } = this.app.waibuMpa
15
15
  const { $, req, locals } = this.component
16
16
  const { routePath } = this.app.waibu
@@ -23,7 +23,7 @@ async function drawer () {
23
23
  if (this.params.attr.scroll) this.params.attr.dataBsScroll = 'true'
24
24
  if (this.params.attr.noDismiss) this.params.attr.dataBsBackdrop = 'static'
25
25
  const buttons = []
26
- if (locals._meta.isAdmin) buttons.push(await this.component.buildTag({ tag: 'btn', attr: { href: routePath('waibuAdmin:/'), icon: 'lock', text: 'color:danger', tooltip: req.t('adminArea') } }))
26
+ if (get(locals, '_meta.user.isAdmin')) buttons.push(await this.component.buildTag({ tag: 'btn', attr: { href: routePath('waibuAdmin:/'), icon: 'lock', text: 'color:danger', tooltip: req.t('adminArea') } }))
27
27
  const html = []
28
28
  $(`<div>${this.params.html}</div>`).children().each(function () {
29
29
  if (this.name === 'drawer-toolbar') buttons.push(trim($(this).prop('innerHTML')))
@@ -8,6 +8,7 @@ async function formPlaintext () {
8
8
  const { isEmpty, get } = this.app.lib._
9
9
  const { escape } = this.app.waibu
10
10
  this.params.attr.disabled = true
11
+ this.params.attr.background = 'color:secondary opacity:10'
11
12
  const { name } = this.params.attr
12
13
  if (this.params.attr.labelFloating) this.params.attr.class.push('border', 'rounded')
13
14
  if (!isEmpty(name) && isEmpty(this.params.attr.value)) {
@@ -93,9 +93,7 @@ async function navDropdownSetting () {
93
93
  async signout () {
94
94
  await wbs.confirmation(\`${this.component.req.t('signoutWarning')}\`, {
95
95
  ok: '${id}:post',
96
- close: 'y',
97
- theme: '${this.component.theme.name}',
98
- iconset: '${this.component.iconset.name}'
96
+ close: 'y'
99
97
  })
100
98
  },
101
99
  post () {
@@ -10,9 +10,7 @@ async function navItemSignout () {
10
10
  async signout () {
11
11
  await wbs.confirmation(\`${this.component.req.t('signoutWarning')}\`, {
12
12
  ok: '${this.params.attr.id}:post',
13
- close: 'y',
14
- theme: '${this.component.theme.name}',
15
- iconset: '${this.component.iconset.name}'
13
+ close: 'y'
16
14
  })
17
15
  },
18
16
  post () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "2.9.1",
3
+ "version": "2.10.0",
4
4
  "description": "Bootstrap suport for Waibu 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-05-25
4
+
5
+ - [2.10.0] Bug fix in ```_lib.js```
6
+ - [2.10.0] Add dimmed background for ```form-plaintext``` widget
7
+ - [2.10.0] Auto detect theme & iconset
8
+
9
+ ## 2026-05-22
10
+
11
+ - [2.9.2] Bug fix in ```drawer``` widget
12
+
3
13
  ## 2026-05-16
4
14
 
5
15
  - [2.9.1] Bug fix in ```form-select-ext``` widget