jenesius-vue-form
Advanced tools
Comparing version 1.0.10 to 1.0.11
import { Form } from "./classes/Form"; | ||
import { Input } from "./classes/Input"; | ||
import { Input, useInputState } from "./classes/Input"; | ||
import useFormState from "./hooks/useFormState"; | ||
import buildDepend from "./methods/build-depend"; | ||
import config from "./state"; | ||
export { Form, useFormState, Input, buildDepend, config }; | ||
export { Form, useFormState, Input, useInputState, buildDepend, config }; |
import { Form } from "../classes/Form"; | ||
import { Input, InputInterface } from "../classes/Input"; | ||
export default function buildDepend(name: string, init: () => Form | InputInterface | Input): Form; | ||
export default function buildDepend(name: string, init: () => Form | InputInterface | Input): any; |
/*! | ||
* jenesius-vue-form v1.0.10 | ||
* jenesius-vue-form v1.0.11 | ||
* (c) 2022 Jenesius | ||
@@ -431,2 +431,11 @@ * @license MIT | ||
Input.EVENT_CHANGE_DISABLED = 'input:change-disabled'; | ||
function useInputState(input) { | ||
const state = vue.reactive({ | ||
value: input.value, | ||
disabled: input.disabled | ||
}); | ||
input.on(Input.EVENT_NEW_VALUE, v => state.value = v); | ||
input.on(Input.EVENT_CHANGE_DISABLED, v => state.disabled = v); | ||
return state; | ||
} | ||
@@ -470,1 +479,2 @@ function useFormState(form) { | ||
exports.useFormState = useFormState; | ||
exports.useInputState = useInputState; |
{ | ||
"name": "jenesius-vue-form", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "email": "lokargenia@gmail.com", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25826
661