@live-change/frontend-auto-form 0.9.43 → 0.9.44

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.
@@ -66,7 +66,6 @@
66
66
  import Button from "primevue/button";
67
67
  import AutoInput from "./AutoInput.vue"
68
68
 
69
- import { inputs, types } from '../../config.js'
70
69
  import { computed, getCurrentInstance, toRefs } from 'vue'
71
70
 
72
71
  const props = defineProps({
@@ -15,8 +15,7 @@
15
15
 
16
16
  <script setup>
17
17
  import AutoInput from "./AutoInput.vue"
18
- import { inputs, types } from '../../config.js'
19
- import { computed, inject, toRefs, getCurrentInstance } from 'vue'
18
+ import { computed, toRefs, getCurrentInstance } from 'vue'
20
19
  import Message from 'primevue/message'
21
20
 
22
21
  import { useI18n } from 'vue-i18n'
@@ -87,11 +86,8 @@
87
86
  return true
88
87
  })
89
88
 
90
- const inputConfig = computed(() => {
91
- if(definition.value?.input) return inputs[definition.value.input]
92
- if(definition.value?.type) return types[definition.value.type]
93
- return inputs.default
94
- })
89
+ import { provideInputConfigByDefinition } from './inputConfigInjection.js'
90
+ const inputConfig = computed(() => provideInputConfigByDefinition(definition.value))
95
91
 
96
92
  import { validateData } from "@live-change/vue3-components"
97
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/frontend-auto-form",
3
- "version": "0.9.43",
3
+ "version": "0.9.44",
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.7.2",
25
- "@live-change/cli": "^0.9.43",
26
- "@live-change/dao": "^0.9.43",
27
- "@live-change/dao-vue3": "^0.9.43",
28
- "@live-change/dao-websocket": "^0.9.43",
29
- "@live-change/framework": "^0.9.43",
30
- "@live-change/image-frontend": "^0.9.43",
31
- "@live-change/image-service": "^0.9.43",
32
- "@live-change/session-service": "^0.9.43",
33
- "@live-change/vue3-components": "^0.9.43",
34
- "@live-change/vue3-ssr": "^0.9.43",
25
+ "@live-change/cli": "^0.9.44",
26
+ "@live-change/dao": "^0.9.44",
27
+ "@live-change/dao-vue3": "^0.9.44",
28
+ "@live-change/dao-websocket": "^0.9.44",
29
+ "@live-change/framework": "^0.9.44",
30
+ "@live-change/image-frontend": "^0.9.44",
31
+ "@live-change/image-service": "^0.9.44",
32
+ "@live-change/session-service": "^0.9.44",
33
+ "@live-change/vue3-components": "^0.9.44",
34
+ "@live-change/vue3-ssr": "^0.9.44",
35
35
  "@vueuse/core": "^12.3.0",
36
36
  "codeceptjs-assert": "^0.0.5",
37
37
  "compression": "^1.7.5",
@@ -52,7 +52,7 @@
52
52
  "vue3-scroll-border": "0.1.6"
53
53
  },
54
54
  "devDependencies": {
55
- "@live-change/codeceptjs-helper": "^0.9.43",
55
+ "@live-change/codeceptjs-helper": "^0.9.44",
56
56
  "codeceptjs": "^3.6.10",
57
57
  "generate-password": "1.7.1",
58
58
  "playwright": "1.49.1",
@@ -63,5 +63,5 @@
63
63
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
64
64
  "license": "ISC",
65
65
  "description": "",
66
- "gitHead": "608a5e07398216f7f52f58ec338e7b10df457bc3"
66
+ "gitHead": "6e9cf980b2ac6e4e7d78955cbf97ae1c2963bcab"
67
67
  }