waibu-maps 2.1.1 → 2.1.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.
- package/extend/waibuBootstrap/theme/component/widget/control-group.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-image.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-logo.js +2 -2
- package/extend/waibuBootstrap/theme/component/widget/control-mouse-pos.js +1 -1
- package/extend/waibuBootstrap/theme/component/widget/control-search.js +2 -2
- package/extend/waibuBootstrap/theme/component/widget/control-zbp.js +1 -1
- package/package.json +2 -2
- package/wiki/CHANGES.md +4 -0
|
@@ -55,7 +55,7 @@ async function controlGroup () {
|
|
|
55
55
|
if (!menu) return
|
|
56
56
|
if (menu.children.length > 0) return
|
|
57
57
|
const setting = el.getAttribute('setting') ? ('setting="' + el.getAttribute('setting') + '"') : ''
|
|
58
|
-
await wmpa.addComponent('<c:' + el.getAttribute('component') + ' ' + setting + ' />', menu, null, true)
|
|
58
|
+
await wmpa.addComponent('<c:' + el.getAttribute('component') + ' ' + setting + ' />', menu, null, true, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
|
|
59
59
|
}
|
|
60
60
|
`, `
|
|
61
61
|
async ${prefix}Builder (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 () {
|
|
@@ -62,7 +62,7 @@ async function controlSearch () {
|
|
|
62
62
|
feeds.unshift({ code: 'latLng', name: 'gotoLatLng', feed: { id: 'latLng', label: 'latLng' } })
|
|
63
63
|
this.$store.mapSearch.feeds = feeds
|
|
64
64
|
const body = feeds.map(feed => '<c:dropdown-item :class="$store.mapSearch.feed === $el.getAttribute(\\'data-code-feedid\\') ? \\'active\\' : \\'\\'" data-code-feedid="' + feed.code + ':' + feed.feed.id + '" t:content="' + feed.feed.label + '" @click="$store.mapSearch.feed = \\'' + feed.code + ':' + feed.feed.id + '\\'"/>')
|
|
65
|
-
await wmpa.addComponent(body, '#${id} .input-group .dropdown-menu', 'div', true)
|
|
65
|
+
await wmpa.addComponent(body, '#${id} .input-group .dropdown-menu', 'div', true, { theme: '${this.component.theme.name}', iconset: '${this.component.iconset.name}' })
|
|
66
66
|
if (!this.$store.mapSearch.feed) this.$store.mapSearch.feed = feeds[0].code + ':' + feeds[0].feed.id
|
|
67
67
|
const html = this.$store.mapSearch.recent ?? ''
|
|
68
68
|
wmpa.replaceWithComponentHtml(html, '#${id} .result div', 'div')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "waibu-maps",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Maps for Waibu MPA",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/ardhi/waibu-maps#readme",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"maplibre-gl": "^5.
|
|
39
|
+
"maplibre-gl": "^5.16.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"clean-jsdoc-theme": "^4.3.0",
|