waibu-bootstrap 1.2.12 → 2.0.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.
- package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-select-country.js +1 -1
- package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-select-ext.js +14 -10
- package/index.js +1 -1
- package/package.json +36 -36
- /package/{bajo → extend/bajo}/hook/waibu-mpa.bootstrap@after-build-page.js +0 -0
- /package/{bajo → extend/bajo}/intl/id.json +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/_lib.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/a.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/accordion-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/accordion.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/alert.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/app-launcher-trigger.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/app-launcher.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/badge.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/blockquote.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/breadcrumb-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/breadcrumb.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/btn-back-to-top.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/btn-close.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/btn-group.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/btn-toolbar.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/btn.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-body.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-footer.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-group.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-header.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-link.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-subtitle.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-text.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card-title.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/card.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/carousel-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/carousel.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/collapse-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/collapse.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/container.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/drawer-toolbar.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/drawer.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/dropdown-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/dropdown.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/fieldset.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/figcaption.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/figure.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-check-toggle.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-check.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-color.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-date.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-datetime.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-file.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-input-addon.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-input.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-password.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-plaintext.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-radio-toggle.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-radio.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-range.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-select.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-switch.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-textarea.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form-time.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/form.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/grid-col.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/grid-row.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/heading.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/img.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/lead.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/list-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/list.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/masonry.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/modal-body.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/modal-footer.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/modal-header.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/modal.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-divider.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-dropdown-darkmode.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-dropdown-language.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-dropdown-setting.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-item-signout.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav-toggle-fullscreen.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/nav.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/navbar-brand.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/navbar-text.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/navbar.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/pagination-item.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/pagination.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/progress-stack.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/progress.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/scrollspy.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/sidebar.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/spinner.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/table.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/tbody.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/td.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/tfoot.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/th.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/thead.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/toast-stack.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/toast.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/factory/tr.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/_lib.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/active.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/background.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/border.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/dim.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/disabled.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/display.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/flex.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/font.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/gutter.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/label.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/link.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/margin-padding.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/popover.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/position.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/rounded.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/text.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/tooltip.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag.js +0 -0
- /package/{waibuMpa → extend/waibuMpa}/theme.js +0 -0
- /package/{waibuStatic → extend/waibuStatic}/asset/css/wbs.css +0 -0
- /package/{waibuStatic → extend/waibuStatic}/asset/js/wbs.js +0 -0
- /package/{waibuStatic → extend/waibuStatic}/virtual.json +0 -0
|
@@ -17,7 +17,7 @@ async function formSelectCountry () {
|
|
|
17
17
|
const { readConfig } = this.plugin.app.bajo
|
|
18
18
|
const { map } = this.plugin.lib._
|
|
19
19
|
const { base64JsonEncode } = this.plugin.app.waibuMpa
|
|
20
|
-
const countries = await readConfig('bajoCommonDb:/dobo/fixture/country.json', { ignoreError: true, defValue: [] })
|
|
20
|
+
const countries = await readConfig('bajoCommonDb:/extend/dobo/fixture/country.json', { ignoreError: true, defValue: [] })
|
|
21
21
|
this.params.attr.options = base64JsonEncode(map(countries, c => {
|
|
22
22
|
return { value: c.id, text: c.name.replaceAll('\'', '') }
|
|
23
23
|
}))
|
|
@@ -122,17 +122,21 @@ async function formSelectExt () {
|
|
|
122
122
|
const opts = ${opts}
|
|
123
123
|
instance = new TomSelect($refs.${xref}, opts)
|
|
124
124
|
const val = $refs.${xref}.dataset.value
|
|
125
|
-
if (!_.isEmpty(val)) {
|
|
126
|
-
fetch('${group.remote.url}?query=${group.remote.valueField}:' + val, ${jsonStringify(fetchOpts, true)})
|
|
127
|
-
.then(resp => resp.json())
|
|
128
|
-
.then(json => {
|
|
129
|
-
if (json.data.length === 0) return
|
|
130
|
-
const opt = _.pick(json.data[0], ['${group.remote.valueField}', '${group.remote.labelField}'])
|
|
131
|
-
instance.addOption(opt)
|
|
132
|
-
instance.setValue(opt.${group.remote.valueField})
|
|
133
|
-
})
|
|
134
|
-
}
|
|
135
125
|
`
|
|
126
|
+
if (group.remote) {
|
|
127
|
+
this.params.attr['@load.window'] += `
|
|
128
|
+
if (!_.isEmpty(val)) {
|
|
129
|
+
fetch('${group.remote.url}?query=${group.remote.valueField}:' + val, ${jsonStringify(fetchOpts, true)})
|
|
130
|
+
.then(resp => resp.json())
|
|
131
|
+
.then(json => {
|
|
132
|
+
if (json.data.length === 0) return
|
|
133
|
+
const opt = _.pick(json.data[0], ['${group.remote.valueField}', '${group.remote.labelField}'])
|
|
134
|
+
instance.addOption(opt)
|
|
135
|
+
instance.setValue(opt.${group.remote.valueField})
|
|
136
|
+
})
|
|
137
|
+
}
|
|
138
|
+
`
|
|
139
|
+
}
|
|
136
140
|
this.params.attr.options = options
|
|
137
141
|
this.params.attr = omit(this.params.attr, ['noDropdownInput', 'removeBtn', 'clearBtn', 'c-opts', 'remoteUrl', 'remoteSearchField', 'remoteLabelField', 'remoteValueField'])
|
|
138
142
|
await build.call(this, buildFormSelect, this.params)
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "waibu-bootstrap",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Bootstrap suport for Waibu Framework",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"type": "module",
|
|
10
|
-
"bajo": {
|
|
11
|
-
"type": "plugin"
|
|
12
|
-
},
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/ardhi/waibu-bootstrap.git"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"bootstrap",
|
|
19
|
-
"waibu",
|
|
20
|
-
"web",
|
|
21
|
-
"webserver",
|
|
22
|
-
"bajo",
|
|
23
|
-
"framework",
|
|
24
|
-
"fastify",
|
|
25
|
-
"modular"
|
|
26
|
-
],
|
|
27
|
-
"author": "Ardhi Lukianto <ardhi@lukianto.com>",
|
|
28
|
-
"license": "MIT",
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/ardhi/waibu-bootstrap/issues"
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://github.com/ardhi/waibu-bootstrap#readme",
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"bootstrap": "^5.3.3"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "waibu-bootstrap",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Bootstrap suport for Waibu Framework",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"bajo": {
|
|
11
|
+
"type": "plugin"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git+https://github.com/ardhi/waibu-bootstrap.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"bootstrap",
|
|
19
|
+
"waibu",
|
|
20
|
+
"web",
|
|
21
|
+
"webserver",
|
|
22
|
+
"bajo",
|
|
23
|
+
"framework",
|
|
24
|
+
"fastify",
|
|
25
|
+
"modular"
|
|
26
|
+
],
|
|
27
|
+
"author": "Ardhi Lukianto <ardhi@lukianto.com>",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/ardhi/waibu-bootstrap/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/ardhi/waibu-bootstrap#readme",
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"bootstrap": "^5.3.3"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{waibuMpa → extend/waibuMpa}/theme/component/method/after-build-tag/margin-padding.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|