@live-change/frontend-auto-form 0.8.58 → 0.8.60
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/AutoField.vue +7 -3
- package/config.js +9 -1
- package/package.json +13 -13
package/AutoField.vue
CHANGED
|
@@ -32,7 +32,10 @@
|
|
|
32
32
|
import AutoInput from "./AutoInput.vue"
|
|
33
33
|
|
|
34
34
|
import { inputs, types } from './config.js'
|
|
35
|
-
import { computed, getCurrentInstance, inject, toRefs } from 'vue'
|
|
35
|
+
import { computed, getCurrentInstance, inject, toRefs, onMounted, ref } from 'vue'
|
|
36
|
+
|
|
37
|
+
const isMounted = ref(false)
|
|
38
|
+
onMounted(() => isMounted.value = true)
|
|
36
39
|
|
|
37
40
|
import { useI18n } from 'vue-i18n'
|
|
38
41
|
const { t, rt } = useI18n()
|
|
@@ -77,7 +80,8 @@
|
|
|
77
80
|
}
|
|
78
81
|
})
|
|
79
82
|
|
|
80
|
-
const
|
|
83
|
+
const instanceUid = getCurrentInstance().uid
|
|
84
|
+
const uid = computed(() => isMounted.value ? 'field_'+instanceUid.toFixed().padStart(6, '0') : undefined)
|
|
81
85
|
|
|
82
86
|
const emit = defineEmits(['update:modelValue'])
|
|
83
87
|
|
|
@@ -142,7 +146,7 @@
|
|
|
142
146
|
|
|
143
147
|
const fieldClass = computed(() => [inputConfig.value?.fieldClass, definition.value?.fieldClass, props.class, {
|
|
144
148
|
'p-invalid': !!error.value
|
|
145
|
-
}])
|
|
149
|
+
}, 'flex flex-column'])
|
|
146
150
|
const fieldStyle = computed(() => [inputConfig.value?.fieldStyle, definition.value?.fieldStyle, props.style])
|
|
147
151
|
|
|
148
152
|
const configAttributes = computed(() => {
|
package/config.js
CHANGED
|
@@ -53,7 +53,6 @@ inputs.select = input(() => import('primevue/dropdown'), {
|
|
|
53
53
|
inputs.multiselect = input(() => import('primevue/multiselect'), {
|
|
54
54
|
attributes: (config) => {
|
|
55
55
|
const { definition, i18n, t, te } = config
|
|
56
|
-
console.log("MULTISELECT", config)
|
|
57
56
|
return {
|
|
58
57
|
options: definition.of.options ?? definition.options,
|
|
59
58
|
optionLabel: option => {
|
|
@@ -72,3 +71,12 @@ inputs.duration = input(() => import('primevue/inputmask'), {
|
|
|
72
71
|
types.Image = inputs.image = input(
|
|
73
72
|
async () => (await import('@live-change/image-frontend')).ImageInput
|
|
74
73
|
)
|
|
74
|
+
|
|
75
|
+
types.Boolean = inputs.switch = input(
|
|
76
|
+
async () => (await import('primevue/inputswitch'))
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
/*
|
|
80
|
+
types.Boolean = inputs.switch = {
|
|
81
|
+
fieldComponent: defineAsyncComponent(() => import('./SwitchField.vue')),
|
|
82
|
+
}*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/frontend-auto-form",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.60",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,16 +22,16 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@fortawesome/fontawesome-free": "^6.5.2",
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/framework": "^0.8.
|
|
30
|
-
"@live-change/image-frontend": "^0.8.
|
|
31
|
-
"@live-change/image-service": "^0.8.
|
|
32
|
-
"@live-change/session-service": "^0.8.
|
|
33
|
-
"@live-change/vue3-components": "^0.8.
|
|
34
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
25
|
+
"@live-change/cli": "^0.8.60",
|
|
26
|
+
"@live-change/dao": "^0.8.60",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.60",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.60",
|
|
29
|
+
"@live-change/framework": "^0.8.60",
|
|
30
|
+
"@live-change/image-frontend": "^0.8.60",
|
|
31
|
+
"@live-change/image-service": "^0.8.60",
|
|
32
|
+
"@live-change/session-service": "^0.8.60",
|
|
33
|
+
"@live-change/vue3-components": "^0.8.60",
|
|
34
|
+
"@live-change/vue3-ssr": "^0.8.60",
|
|
35
35
|
"@vueuse/core": "^10.11.0",
|
|
36
36
|
"codeceptjs-assert": "^0.0.5",
|
|
37
37
|
"compression": "^1.7.4",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"vue3-scroll-border": "0.1.6"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
55
|
+
"@live-change/codeceptjs-helper": "^0.8.60",
|
|
56
56
|
"codeceptjs": "^3.6.5",
|
|
57
57
|
"generate-password": "1.7.1",
|
|
58
58
|
"playwright": "^1.41.2",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
64
64
|
"license": "ISC",
|
|
65
65
|
"description": "",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "88bd85bdcd412560abb0aa13f9f3e9c30cbc5455"
|
|
67
67
|
}
|