Skip to content

Commit

Permalink
chore: release beta 46
Browse files Browse the repository at this point in the history
  • Loading branch information
albanm committed Sep 23, 2024
1 parent 69bff12 commit f0e9099
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 68 deletions.
90 changes: 44 additions & 46 deletions doc/components/vjsf-example.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,54 +239,52 @@
<v-divider />

<v-container fluid>
<v-lazy :min-height="120">
<div :style="`width: ${wrapperWidth}%`">
<v-form
ref="form"
v-model="valid"
>
<v-defaults-provider :defaults="example.defaultProps || {}">
<slot
name="vjsf"
:model-value="data"
<div :style="`width: ${wrapperWidth}%`">
<v-form
ref="form"
v-model="valid"
>
<v-defaults-provider :defaults="example.defaultProps || {}">
<slot
name="vjsf"
:model-value="data"
:options="options"
:update-state="updateState"
:update-model-value="modelValue => data = modelValue"
>
<vjsf
v-model="data"
:schema="schema"
:options="options"
:update-state="updateState"
:update-model-value="modelValue => data = modelValue"
@update:state="updateState"
>
<vjsf
v-model="data"
:schema="schema"
:options="options"
@update:state="updateState"
>
<template #custom-textarea="{node, statefulLayout}">
<textarea
:value="node.data"
style="border: 1px solid red;"
placeholder="A custom textarea"
@input="event => statefulLayout.input(node, event.target.value)"
/>
</template>
<template #custom-message="{node}">
This message is defined in a slot (key={{ node.key }})
</template>
</vjsf>
</slot>
</v-defaults-provider>
<v-row class="ma-0">
<v-spacer />
<v-btn
:color="validateColor"
flat
class="ma-2"
@click="$refs.form.validate()"
>
Validate
</v-btn>
</v-row>
</v-form>
</div>
</v-lazy>
<template #custom-textarea="{node, statefulLayout}">
<textarea
:value="node.data"
style="border: 1px solid red;"
placeholder="A custom textarea"
@input="event => statefulLayout.input(node, event.target.value)"
/>
</template>
<template #custom-message="{node}">
This message is defined in a slot (key={{ node.key }})
</template>
</vjsf>
</slot>
</v-defaults-provider>
<v-row class="ma-0">
<v-spacer />
<v-btn
:color="validateColor"
flat
class="ma-2"
@click="$refs.form.validate()"
>
Validate
</v-btn>
</v-row>
</v-form>
</div>
</v-container>
</v-sheet>
</template>
Expand Down
4 changes: 2 additions & 2 deletions doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"compile-examples": "node scripts/compile-examples.mjs"
},
"dependencies": {
"@koumoul/vjsf": "3.0.0-beta.45",
"@koumoul/vjsf-markdown": "0.2.1",
"@koumoul/vjsf": "3.0.0-beta.46",
"@koumoul/vjsf-markdown": "0.2.3",
"@mdi/font": "^7.2.96",
"ajv-formats": "^2.1.1",
"ajv-i18n": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koumoul/vjsf",
"version": "3.0.0-beta.45",
"version": "3.0.0-beta.46",
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
"scripts": {
"test": "vitest",
Expand Down
2 changes: 1 addition & 1 deletion markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koumoul/vjsf-markdown",
"version": "0.2.2",
"version": "0.2.3",
"description": "A plugin to add markdown edition capability to vjsf.",
"scripts": {
"test": "vitest",
Expand Down
22 changes: 4 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f0e9099

Please sign in to comment.