SHACL Form Generator
This repository contains the SHACL form-generator Vue 2 component used in Coscine and the AIMS project.
Project setup
yarn install
Compiles and minifies for production
yarn build
Lints files
yarn lint
Lints and fixes files
yarn lint:fix
Usage
Check the property definitions of /src/FormGenerator.vue
for understanding the requirements.
<FormGenerator
:disabled-mode="formDisabled"
:fixed-value-mode="fixedValueMode"
:fixed-values="fixedValues"
:form-data="metadata"
:form-data-mime-type="metadataMimeType"
:locale="locale"
:selected-shape="applicationProfileUrl"
:shape-mime-type="shapeMimeType"
:shapes="applicationProfile"
:class-receiver="implementedReceiveClass"
:user-receiver="implementedReceiveUser"
@input="inputMetadata"
@inputFixedValues="inputFixedValues"
/>
How to include in your Vue project:
import Vue from "vue";
import FormGenerator from "@coscine/form-generator";
import "@coscine/form-generator/dist/style.css";
Vue.use(FormGenerator);