vanjs-jsf 0.0.19 → 0.2.0
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/LICENSE +201 -201
- package/README.md +134 -102
- package/dist/VanJsfField.d.ts +4 -3
- package/dist/VanJsfField.js +381 -216
- package/dist/VanJsfForm.js +12 -18
- package/dist/index.js.map +4 -4
- package/package.json +64 -55
package/dist/VanJsfField.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { State } from "vanjs-core";
|
|
2
2
|
import { VanJSComponent } from "./VanJSComponent";
|
|
3
|
-
import "van-ui-extended/dist/index.css";
|
|
4
3
|
export interface Option {
|
|
5
4
|
label: string;
|
|
6
5
|
value: string;
|
|
@@ -15,7 +14,9 @@ export declare class VanJsfField extends VanJSComponent {
|
|
|
15
14
|
handleChange: (field: VanJsfField, value: MultiType) => void;
|
|
16
15
|
isVisibleState: State<boolean>;
|
|
17
16
|
errorState: State<string>;
|
|
18
|
-
|
|
17
|
+
/** Used by file fields to pass the selected arrayPath key to formValues */
|
|
18
|
+
arrayPathValue: string;
|
|
19
|
+
constructor(field: Record<string, unknown>, initVal: MultiType, handleChange: (field: VanJsfField, value: MultiType) => void);
|
|
19
20
|
get inputType(): string;
|
|
20
21
|
get label(): string;
|
|
21
22
|
get class(): string;
|
|
@@ -32,5 +33,5 @@ export declare class VanJsfField extends VanJSComponent {
|
|
|
32
33
|
get error(): string;
|
|
33
34
|
set error(val: string);
|
|
34
35
|
render(): Element;
|
|
35
|
-
isVanJsfFieldArray(fields:
|
|
36
|
+
isVanJsfFieldArray(fields: unknown): fields is VanJsfField[];
|
|
36
37
|
}
|