Skip to content

Commit 1d05beb

Browse files
committed
Update to JSON Forms 3.1.0
1 parent add63e7 commit 1d05beb

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

packages/example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"clean": "rimraf dist"
99
},
1010
"dependencies": {
11-
"@jsonforms/core": "3.1.0-alpha.0",
12-
"@jsonforms/vue": "3.1.0-alpha.0",
11+
"@jsonforms/core": "3.1.0",
12+
"@jsonforms/vue": "3.1.0",
1313
"@jsonforms/vue-vuetify": "3.1.0-alpha.0",
1414
"ajv-keywords": "^5.1.0",
1515
"core-js": "^3.9.1",

packages/vue-vuetify/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"lodash": "^4.17.15"
4848
},
4949
"peerDependencies": {
50-
"@jsonforms/core": "3.1.0-alpha.0",
51-
"@jsonforms/vue": "3.1.0-alpha.0",
50+
"@jsonforms/core": "3.1.0",
51+
"@jsonforms/vue": "3.1.0",
5252
"@mdi/font": "^7.0.96",
5353
"vue": "^3.2.47",
5454
"vuetify": "^3.1.12"
@@ -57,8 +57,8 @@
5757
"@babel/core": "^7.14.6",
5858
"@babel/preset-env": "^7.14.7",
5959
"@babel/preset-typescript": "^7.14.5",
60-
"@jsonforms/core": "3.1.0-alpha.0",
61-
"@jsonforms/vue": "3.1.0-alpha.0",
60+
"@jsonforms/core": "3.1.0",
61+
"@jsonforms/vue": "3.1.0",
6262
"@mdi/font": "^7.0.96",
6363
"@rollup/plugin-babel": "^6.0.3",
6464
"@rollup/plugin-node-resolve": "^15.0.1",

packages/vue-vuetify/src/complex/AnyOfRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const controlRenderer = defineComponent({
6969
},
7070
setup(props: RendererProps<ControlElement>) {
7171
const input = useJsonFormsAnyOfControl(props);
72-
const control = (input.control as any).value as typeof input.control;
72+
const control = input.control.value;
7373
const selectedIndex = ref(control.indexOfFittingSchema || 0);
7474
7575
return {

packages/vue-vuetify/src/complex/OneOfRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const controlRenderer = defineComponent({
116116
},
117117
setup(props: RendererProps<ControlElement>) {
118118
const input = useJsonFormsOneOfControl(props);
119-
const control = (input.control as any).value as typeof input.control;
119+
const control = input.control.value;
120120
121121
const selectedIndex = ref(control.indexOfFittingSchema);
122122
const selectIndex = ref(selectedIndex.value);

packages/vue-vuetify/src/complex/OneOfTabRenderer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const controlRenderer = defineComponent({
111111
},
112112
setup(props: RendererProps<ControlElement>) {
113113
const input = useJsonFormsOneOfControl(props);
114-
const control = (input.control as any).value as typeof input.control;
114+
const control = input.control.value;
115115
116116
const selectedIndex = ref(control.indexOfFittingSchema || 0);
117117
const tabIndex = ref(selectedIndex.value);

packages/vue-vuetify/src/complex/components/AdditionalProperties.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ import Ajv, { ValidateFunction } from 'ajv';
9999
import get from 'lodash/get';
100100
import isPlainObject from 'lodash/isPlainObject';
101101
import startCase from 'lodash/startCase';
102-
import { defineComponent, PropType, Ref, ref } from 'vue';
102+
import { defineComponent, PropType, ref } from 'vue';
103103
import {
104104
VBtn,
105105
VCard,
@@ -165,9 +165,8 @@ export default defineComponent({
165165
},
166166
},
167167
setup(props) {
168-
const control = props.input.control as any as Ref<
169-
typeof props.input.control
170-
>;
168+
// eslint-disable-next-line vue/no-setup-props-destructure
169+
const control = props.input.control;
171170
const reservedPropertyNames = Object.keys(
172171
control.value.schema.properties || {}
173172
);

0 commit comments

Comments
 (0)