asigloo / vue-dynamic-forms Goto Github PK
View Code? Open in Web Editor NEWEasy way to dynamically create reactive forms in Vue based on a varying business object model
Home Page: https://vue-dynamic-forms.netlify.app/
License: MIT License
Easy way to dynamically create reactive forms in Vue based on a varying business object model
Home Page: https://vue-dynamic-forms.netlify.app/
License: MIT License
Describe the bug
Input of type: 'number'
returns strings instead of numeric values.
To Reproduce
Steps to reproduce the behavior:
FormField
with type: 'number'
Expected behavior
Values returned should be integers or floats.
Describe the solution you'd like
Possibility to add a helper text to each input
Is your feature request related to a problem? Please describe.
Inputs type elements are now fixed to the common html5 input elements like input, select, checkbox, radio etc.
Describe the solution you'd like
A way to add custom input types via a slot.
Describe alternatives you've considered
Is your feature request related to a problem? Please describe.
Right now, there is no easy/natural way to access/modify field properties without over complexity
Describe the solution you'd like
Describe alternatives you've considered
Composition functions but..
Describe the bug
Undefined variable: "$component-active-bg".
To Reproduce
Steps to reproduce the behavior:
~@asigloo/vue-dynamic-forms/src/styles/themes/default.scss
npm run serve
Expected behavior
No errors
Additional context
$input-focus-border-color: lighten($component-active-bg, 25%) !default;
Describe the solution you'd like
Add readonly property to inputs.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
Choosing an option to be preselected not working.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Option should be preselected in the select input
Additional context
Add any other context about the problem here.
Similar implementation but with render functions
Describe the bug
Error show when running npm install
after installing the package in a repo.
To Reproduce
Steps to reproduce the behavior:
npm i @asigloo/vue-dynamic-forms
npm install
againExpected behavior
No Errors
Log
npm ERR! path /Users/alvarosaburido/as/test/node_modules/@asigloo/vue-dynamic-forms
npm ERR! code EISGIT
npm ERR! git /Users/alvarosaburido/as/test/node_modules/@asigloo/vue-dynamic-forms: Appears to be a git repo or submodule.
npm ERR! git /Users/alvarosaburido/as/test/node_modules/@asigloo/vue-dynamic-forms
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/alvarosaburido/.npm/_logs/2020-05-04T14_47_46_677Z-debug.log
Posible fixes
APSL/react-native-version-number#13 (comment)
Describe the solution you'd like
Datalist Input (Dropdown with images/icons)
Is your feature request related to a problem? Please describe.
The library lacks correct accessibility.
Describe the solution you'd like
Pass AA
0.x
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the 0.x
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
0.5.0
on branch 0.x
cannot be published as it is out of range.Based on the releases published on other branches, only versions within the range >=1.0.0 <1.0.0
can be published from branch 0.x
.
The following commits are responsible for the invalid release:
Those commits should be moved to a valid branch with git merge or git cherry-pick and removed from branch 0.x
with git revert or git reset.
A valid branch could be next
.
See the workflow configuration documentation for more details.
Good luck with your project ✨
Your semantic-release bot 📦🚀
Is your feature request related to a problem? Please describe.
Application using the library asked for a way to set the icon trough the FormFields.
Describe the solution you'd like
Id can be set trough the FormField factory function, field name
will be the default value.
Describe the bug
Textarea events are not triggering, validation doesn't work.
To Reproduce
Steps to reproduce the behavior:
FormField
Expected behavior
Textarea should behave like the rest of the elements
Describe the solution you'd like
Unit Testing and Code Coverage
Describe alternatives you've considered
Is your feature request related to a problem? Please describe.
No this is not currently a problem but just a suggestion. Some frameworks come with pre-defined attributes that you need to define for the look and feel.
Describe the solution you'd like
Whist there is a customClass property for fields, perhaps customAttributes and or customStyles that could receive a key value pairs would also suffice. These of course would pick up the css from whatever cascading style sheet file added on the vue project. As an example, the tags for vuetify start with v- and whilst I understand that this is generic, how does one make it work with a particular framework, lets say BootstrapVue for example which depend on additional attributes.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the solution you'd like
https://github.com/rollup/plugins/tree/master/packages/alias
Is your feature request related to a problem? Please describe.
The library lacks correct accessibility.
Describe the solution you'd like
Pass AA
Describe the bug
If a field of the form depends on a computed property, is not triggering when changed
To Reproduce
Steps to reproduce the behavior:
const isExternal = computed(() => otherBoolean)
customClass: isExternal ? 'hidden' : 'flex'
in one of the fieldsExpected behavior
Form field customClass
should react to change on the computed property.
Describe the bug
Input elements should have autocomplete attributes (suggested: "current-password"): (More info: https://goo.gl/9p2vKq) <input name="password" type="password" class="form-control">…
Expected behavior
Add autocomplete attributes to inputs
Describe the solution you'd like
Add install as nuxt plugin option
Describe alternatives you've considered
Describe the solution you'd like
Allow setting up Netlify Forms via options.
Describe alternatives you've considered
Spread props needed using v-bind
Describe the bug
Github repo link is missing in npm sidepanel
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Github repo should be accesible from npm
Possible Fixes
https://docs.npmjs.com/files/package.json#repository
0.x
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the 0.x
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
0.5.0
on branch 0.x
cannot be published as it is out of range.Based on the releases published on other branches, only versions within the range >=1.0.0 <1.0.0
can be published from branch 0.x
.
The following commits are responsible for the invalid release:
Those commits should be moved to a valid branch with git merge or git cherry-pick and removed from branch 0.x
with git revert or git reset.
A valid branch could be next
.
See the workflow configuration documentation for more details.
Good luck with your project ✨
Your semantic-release bot 📦🚀
Same as #145 but for next
Bring better documentation to users of the library
Describe alternatives you've considered
Describe the bug
Not a bug but a warning
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Extraneous non-emits event listeners (changed) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.
at <AsCheckboxInput control= {label: "Check if you're awesome", type: "checkbox", name: "awesomeness", value: null, dirty: true, …} onChanged=fn<valueChange> >
at <AsDynamicInput key="awesomeness" control= {label: "Check if you're awesome", type: "checkbox", name: "awesomeness", value: null, dirty: true, …} submited=true ... >
at <AsDynamicForm form= {id: "example-form", fieldOrder: Array(11), fields: {…}} onSubmited=fn<handleSubmit> onChanged=fn<valueChanged> ... >
at <App>
Describe the bug
Custom class ain't working
To Reproduce
Steps to reproduce the behavior:
FormField
Expected behavior
Class is applied correctly
Describe the solution you'd like
Add option to show validation errors on input blur.
Describe the solution you'd like
Allow users to access individual inputs via this.$refs
Describe the solution you'd like
Add the following options available in 0.x.x
customClass = '',
method = 'POST',
autoValidate = false,
netlify = false,
netlifyHoneypot = null,
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Selectinput
Expected behavior
No error
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
Preselected Value of true should select Checkbox
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Checkbox is selected
The current docs show how to create a custom field that contains a single <input>
element. I would like to see documentation for creating more complex custom fields. Ideally I'd like to know how to create custom fields of the following types:
These should each map to single properties in the model and be a single logical "field" in the form.
The current docs also only show how to create a custom field within a given form. I'd also like to see am example showing how to create a reusable custom field that can be used in different forms.
Describe the solution you'd like
Add how-to-use Custom Fields guide to Readme.md
Describe the bug
Error when shows up when npm run serve
a TS Vue3 App that imports the lib.
in ./node_modules/@asigloo/vue-dynamic-forms/dist/as-dynamic-forms.esm.js
Module parse failed: Unexpected token (47:67)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| props,
| setup(props, { emit }) {
> const { onChange, onFocus, onBlur } = useInputEvents(props?.control, emit);
| return () => h('input', {
| name: props?.control?.name || '',
@ ./src/main.ts 21:0-64 22:22-40
@ multi (webpack)-dev-server/client?http://192.168.0.168:9573&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.ts
To Reproduce
Steps to reproduce the behavior:
main.ts
Actual behavior
Doesn't compile
Expected behavior
Should compile
0.x
branch failed. 🚨I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the 0.x
branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here is some links that can help you:
If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.
0.5.0
on branch 0.x
cannot be published as it is out of range.Based on the releases published on other branches, only versions within the range >=1.0.0 <1.0.0
can be published from branch 0.x
.
The following commits are responsible for the invalid release:
Those commits should be moved to a valid branch with git merge or git cherry-pick and removed from branch 0.x
with git revert or git reset.
A valid branch could be next
.
See the workflow configuration documentation for more details.
Good luck with your project ✨
Your semantic-release bot 📦🚀
Describe the bug
Form not rendered if fieldOrder
prop is missing
To Reproduce
Steps to reproduce the behavior:
v3.2.0
fieldOrder
arrayExpected behavior
Default order should be available
Describe the solution you'd like
Add typings for Typescript support
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
Describe the solution you'd like
Add url validation to validators.
Is your feature request related to a problem? Please describe.
Default theme variables cannot be overwritten
Describe the solution you'd like
Apply !default
to variables in theme/default.scss
Describe the solution you'd like
Add how-to-use Custom Fields guide to Readme.md
Describe the bug
When no options passed: Cannot destructure property 'customClass' of 'options.form' as it is undefined.
To Reproduce
Steps to reproduce the behavior:
main.ts
add const VueDynamicForms = createDynamicForms({});
without optionsA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.