-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a basic Vanilla renderer set for Vue 3 and Vue 2. It provides primitive control renderers, basic layout renderers as well as an array list renderer based on Vanilla HTML5. CSS classes are completely customizable programmatically as well as via the ui schema to allow straightforward integration with CSS libraries like Tailwind. Complimentary changes: - The Vue 'config' object was only top-level reactive. Now JSON Forms will also react to nested changes. - Export the whole content of Vue `jsonFormsCompositions` to make them reusable by the vanilla-renderers as well as any custom library. - Restructured package layout to enable sharing the same Vue library over multiple bundles during development. - Add id calculation to existing composition function - Reworked watching in composition API as the previous approach led to endless loops in Vue 2
- Loading branch information
Showing
126 changed files
with
10,588 additions
and
4,515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import find from "lodash/find"; | ||
|
||
export const getFirstPrimitiveProp = (schema: any) => { | ||
if (schema.properties) { | ||
return find(Object.keys(schema.properties), propName => { | ||
const prop = schema.properties[propName]; | ||
return ( | ||
prop.type === 'string' || | ||
prop.type === 'number' || | ||
prop.type === 'integer' | ||
); | ||
}); | ||
} | ||
return undefined; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.