diff --git a/packages/vue-vuetify/README.md b/packages/vue-vuetify/README.md index 3fd325204..0a714a053 100644 --- a/packages/vue-vuetify/README.md +++ b/packages/vue-vuetify/README.md @@ -36,10 +36,9 @@ Use the `json-forms` component for each form you want to render and hand over th ```vue diff --git a/packages/vue-vuetify/src/additional/ListWithDetailRenderer.entry.ts b/packages/vue-vuetify/src/additional/ListWithDetailRenderer.entry.ts new file mode 100644 index 000000000..8d2fb6111 --- /dev/null +++ b/packages/vue-vuetify/src/additional/ListWithDetailRenderer.entry.ts @@ -0,0 +1,13 @@ +import { + and, + isObjectArray, + rankWith, + uiTypeIs, + type JsonFormsRendererRegistryEntry, +} from '@jsonforms/core'; +import controlRenderer from './ListWithDetailRenderer.vue'; + +export const entry: JsonFormsRendererRegistryEntry = { + renderer: controlRenderer, + tester: rankWith(4, and(uiTypeIs('ListWithDetail'), isObjectArray)), +}; diff --git a/packages/vue-vuetify/src/additional/ListWithDetailRenderer.vue b/packages/vue-vuetify/src/additional/ListWithDetailRenderer.vue index 4fb649661..7d77ae9ee 100644 --- a/packages/vue-vuetify/src/additional/ListWithDetailRenderer.vue +++ b/packages/vue-vuetify/src/additional/ListWithDetailRenderer.vue @@ -318,11 +318,6 @@ const controlRenderer = defineComponent({ }); export default controlRenderer; - -export const entry: JsonFormsRendererRegistryEntry = { - renderer: controlRenderer, - tester: rankWith(4, and(uiTypeIs('ListWithDetail'), isObjectArray)), -};