@ederzeel/nuxt-schema-form-nightly 0.1.0-29150705.3d43143 → 0.1.0-29151062.0dca838

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.
@@ -10,7 +10,7 @@ const props = defineProps<{
10
10
  title?: string
11
11
  description?: string
12
12
  jsonSchemaPath: string
13
- items: PropertiesType
13
+ items: PropertiesType & { required?: string[] }
14
14
  isRequired: boolean
15
15
  minItems?: number
16
16
  maxItems?: number
@@ -8,7 +8,7 @@ const props = defineProps<{
8
8
  jsonSchemaPath: string
9
9
  properties: PropertiesType
10
10
  modelValue: Record<string, unknown>
11
- required: string[]
11
+ required?: string[]
12
12
  isRequired: boolean
13
13
  }>()
14
14
 
@@ -33,7 +33,7 @@ const onInput = (value: unknown, key: string) => {
33
33
  :model-value="modelValue[key]"
34
34
  :json-schema-path="jsonSchemaPath?.length <= 0 ? `properties.${key}` : `${jsonSchemaPath}.properties.${key}`"
35
35
  v-bind="options"
36
- :isRequired="required.includes(key)"
36
+ :isRequired="required ? required.includes(key) : false"
37
37
  class="mt-4"
38
38
  @update:model-value="(event: unknown) => onInput(event, key)"
39
39
  @submit="() => emit('submit')"
@@ -62,7 +62,7 @@ const values = computed(() => {
62
62
  })
63
63
 
64
64
  const columns = computed<TableColumn<{}>[]>(() => {
65
- const columns = props.columns ?? []
65
+ const columns = props.columns ? Array.from(props.columns) : []
66
66
 
67
67
  if (props.editInline) {
68
68
  columns.unshift({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ederzeel/nuxt-schema-form-nightly",
3
- "version": "0.1.0-29150705.3d43143",
3
+ "version": "0.1.0-29151062.0dca838",
4
4
  "description": "A runtime form generator for nuxt",
5
5
  "type": "module",
6
6
  "exports": {