waibu-maps 2.1.2 → 2.1.4

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.
@@ -166,7 +166,7 @@ class WaibuMaps { // eslint-disable-line no-unused-vars
166
166
  if (options.builder) {
167
167
  if (_.isArray(options.builder)) ctrl.panels = options.builder
168
168
  else if (_.isString(options.builder)) {
169
- ctrl.panels = await wmpa.createComponent(options.builder)
169
+ ctrl.panels = await wmpa.createComponent(options.builder, undefined, options.opts)
170
170
  } else {
171
171
  const fn = options.builder.bind(ctrl.scope)
172
172
  ctrl.panels = await fn(options.params)
@@ -27,7 +27,7 @@ async function controlImage () {
27
27
  const body = ['<c:${url ? `a url="${url}"` : 'div'}><c:img ${stringifyAttribs(img)} ']
28
28
  body.push('${animate}')
29
29
  body.push('/></c:${url ? 'a' : 'div'}>')
30
- return await wmpa.createComponent(body)
30
+ return await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
31
31
  }
32
32
  `)
33
33
 
@@ -41,10 +41,10 @@ async function controlLogo () {
41
41
  }
42
42
  this.addBlock('reactive', `
43
43
  async ${prefix}Builder () {
44
- const body = ['<c:a href="#" @click="wbs.appLauncher(\\'darkmode language\\', \\'${this.params.attr.menu}\\')">']
44
+ const body = ['<c:a href="#" @click="wbs.appLauncher(\\'darkmode language\\', \\'${this.params.attr.menu}\\', { theme: \\'${this.component.theme.name}\\', iconset: \\'${this.component.iconset.name}\\' })">']
45
45
  body.push('<c:img ${stringifyAttribs(img)} ${animate} />')
46
46
  body.push('</c:a>')
47
- return await wmpa.createComponent(body)
47
+ return await wmpa.createComponent(body, null)
48
48
  }
49
49
  `)
50
50
 
@@ -56,7 +56,7 @@ async function controlMousePos () {
56
56
  `, `
57
57
  async ${prefix}Builder () {
58
58
  const body = '<c:div id="${id}" margin="x-2 top-1" text="align:center nowrap"/>'
59
- return await wmpa.createComponent(body)
59
+ return await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
60
60
  }
61
61
  `])
62
62
  this.addBlock('run', `
@@ -54,7 +54,7 @@ async function controlSearch () {
54
54
  '<c:icon name="search" />',
55
55
  '</c:button>'
56
56
  ]
57
- return [await wmpa.createComponent(body)]
57
+ return [await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })]
58
58
  }
59
59
  `, `
60
60
  async ${prefix}Populate () {
@@ -54,7 +54,7 @@ async function controlZbp () {
54
54
  ' }',
55
55
  '}" />'
56
56
  ]
57
- return await wmpa.createComponent(body)
57
+ return await wmpa.createComponent(body, null, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
58
58
  }
59
59
  `])
60
60
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-maps",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Maps for Waibu MPA",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-20
4
+
5
+ - [2.1.4] Bug fix on ```wmaps.createControl()```
6
+
7
+ ## 2026-01-17
8
+
9
+ - [2.1.3] Add capability to set custom theme & iconset through headers
10
+
3
11
  ## 2026-01-13
4
12
 
5
13
  - [2.1.1] Bug fix on waibuMpa's widgeting system