@dmitryvim/form-builder 0.2.8 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -40
- package/dist/browser/formbuilder.min.js +71 -53
- package/dist/browser/formbuilder.v0.2.10.min.js +322 -0
- package/dist/cjs/index.cjs +610 -164
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +602 -160
- package/dist/esm/index.js.map +1 -1
- package/dist/form-builder.js +71 -53
- package/dist/types/instance/FormBuilderInstance.d.ts +5 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/schema.d.ts +6 -3
- package/dist/types/utils/enable-conditions.d.ts +18 -0
- package/package.json +1 -1
- package/dist/browser/formbuilder.v0.2.8.min.js +0 -304
- package/dist/types/utils/display-conditions.d.ts +0 -17
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DisplayCondition } from "../types/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* Get value from nested object path
|
|
4
|
-
* Supports nested paths: "address.city"
|
|
5
|
-
* Supports array indices: "items[0].name", "contacts[1].email"
|
|
6
|
-
* @param data - Form data object
|
|
7
|
-
* @param path - Dot notation path with optional array indices
|
|
8
|
-
* @returns The value at the path, or undefined if not found
|
|
9
|
-
*/
|
|
10
|
-
export declare function getValueByPath(data: any, path: string): any;
|
|
11
|
-
/**
|
|
12
|
-
* Evaluate a display condition against form data
|
|
13
|
-
* @param condition - Display condition to evaluate
|
|
14
|
-
* @param formData - Current form data
|
|
15
|
-
* @returns true if condition is met (field should be displayed), false otherwise
|
|
16
|
-
*/
|
|
17
|
-
export declare function evaluateDisplayCondition(condition: DisplayCondition, formData: Record<string, any>): boolean;
|