@katachi-forms/core
Advanced tools
Comparing version 0.0.3 to 0.1.0
@@ -359,3 +359,3 @@ import { AnyZodObject } from 'zod'; | ||
*/ | ||
isModified(): boolean; | ||
isModified(name?: keyof z.infer<FormSchema> | string): boolean; | ||
protected applyEffectValidations(): boolean; | ||
@@ -362,0 +362,0 @@ /** |
@@ -352,3 +352,3 @@ var v = Object.defineProperty; | ||
); | ||
class M { | ||
class H { | ||
constructor(i, t = {}) { | ||
@@ -641,4 +641,4 @@ l(this, "schema"); | ||
*/ | ||
isModified() { | ||
return Object.values(this.fields).some((i) => i.isModified()); | ||
isModified(i) { | ||
return i ? (this.assertFieldExists(i), this.fields[i].isModified()) : Object.values(this.fields).some((t) => t.isModified()); | ||
} | ||
@@ -683,3 +683,3 @@ applyEffectValidations() { | ||
O as FieldNotFoundError, | ||
M as Form, | ||
H as Form, | ||
y as KatachiError, | ||
@@ -686,0 +686,0 @@ D as isFieldAlreadyExistsError, |
{ | ||
"name": "@katachi-forms/core", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53679