Skip to content

Commit 0e1400b

Browse files
committed
update forms
1 parent 793844b commit 0e1400b

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<template lang="pug">
2+
div
3+
//- pre(v-html="JSON.stringify(payload, null, 2)")
4+
sesame-json-form-renderer(
5+
v-model:data="payload.target"
6+
v-model:validations="validations"
7+
:schema="schema"
8+
:uischema="uischema"
9+
)
10+
</template>
11+
12+
<script lang="ts" setup>
13+
import { computed, ref } from 'vue'
14+
import { IdentityState } from '~/constants'
15+
import { useQuasar } from 'quasar'
16+
import type { components, operations } from '#build/types/service-api'
17+
import { useRouter } from 'vue-router'
18+
import { useFetch } from 'nuxt/app'
19+
import { useIdentityStates } from '~/composables'
20+
import { useErrorHandling } from '#imports'
21+
22+
const props = defineProps(
23+
{
24+
schema: {
25+
type: Object,
26+
default: () => ({}),
27+
},
28+
uischema: {
29+
type: Object,
30+
default: () => ({}),
31+
},
32+
payload: {
33+
type: Object,
34+
required: true,
35+
},
36+
}
37+
)
38+
39+
const $q = useQuasar()
40+
const router = useRouter()
41+
const { getStateColor, getStateName } = useIdentityStates()
42+
const { handleError } = useErrorHandling()
43+
44+
45+
const validations = ref([])
46+
const error = ref(null)
47+
48+
// defineExpose({
49+
// submit,
50+
// sync,
51+
// logs,
52+
// back,
53+
// })
54+
</script>
55+
56+
57+
<style scoped>
58+
/* Your styles here */
59+
</style>

src/components/identityForm/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ div
66

77
q-tab-panels(v-model="tab")
88
q-tab-panel(name="inetOrgPerson")
9-
sesame-json-form-renderer(
9+
sesame-json-form-renderer-api(
1010
schemaName="inetorgperson"
1111
v-model:data="identity.inetOrgPerson"
1212
v-model:validations="validations"
1313
)
1414
q-tab-panel(v-for="tab in tabs" :key="tab" :name="tab")
15-
sesame-json-form-renderer(
15+
sesame-json-form-renderer-api(
1616
:schemaName="tab"
1717
v-model:data="identity.additionalFields.attributes[tab]"
1818
v-model:validations="validations"

0 commit comments

Comments
 (0)