vanjs-jsf 0.0.4 → 0.0.5

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.
@@ -0,0 +1,5 @@
1
+ import { Fields } from "@remoteoss/json-schema-form";
2
+ export declare class JsfUtils {
3
+ static getJsfFieldByName(fields: Fields, name: string): Record<string, unknown> | null;
4
+ }
5
+ //# sourceMappingURL=JsfUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JsfUtils.d.ts","sourceRoot":"","sources":["../lib/JsfUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAErD,qBAAa,QAAQ;IACnB,MAAM,CAAC,iBAAiB,CACtB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;CAQlC"}
@@ -0,0 +1,4 @@
1
+ export declare abstract class VanJSComponent {
2
+ abstract render(): Element;
3
+ }
4
+ //# sourceMappingURL=VanJSComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VanJSComponent.d.ts","sourceRoot":"","sources":["../lib/VanJSComponent.ts"],"names":[],"mappings":"AAAA,8BAAsB,cAAc;IAClC,QAAQ,CAAC,MAAM,IAAI,OAAO;CAC3B"}
@@ -0,0 +1,27 @@
1
+ import { State } from "vanjs-core";
2
+ import { VanJSComponent } from "./VanJSComponent";
3
+ export interface Option {
4
+ label: string;
5
+ value: string;
6
+ description: string;
7
+ }
8
+ export type MultiType = string | number | boolean;
9
+ export declare class VanJsfField extends VanJSComponent {
10
+ name: string;
11
+ field: Record<string, unknown>;
12
+ iniVal: MultiType;
13
+ handleChange: (field: VanJsfField, value: MultiType) => void;
14
+ isVisibleState: State<boolean>;
15
+ errorState: State<string>;
16
+ constructor(field: Record<string, unknown>, initVal: string, handleChange: (field: VanJsfField, value: MultiType) => void);
17
+ get inputType(): string;
18
+ get label(): string;
19
+ get description(): string;
20
+ get options(): Option[];
21
+ get isVisible(): boolean;
22
+ set isVisible(val: boolean);
23
+ get error(): string;
24
+ set error(val: string);
25
+ render(): Element;
26
+ }
27
+ //# sourceMappingURL=VanJsfField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VanJsfField.d.ts","sourceRoot":"","sources":["../lib/VanJsfField.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAWlD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAElD,qBAAa,WAAY,SAAQ,cAAc;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,MAAM,EAAE,SAAS,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IAC7D,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAGxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,KAAK,IAAI;IAc9D,IAAI,SAAS,IAAI,MAAM,CAEtB;IACD,IAAI,KAAK,IAAI,MAAM,CAElB;IACD,IAAI,WAAW,IAAI,MAAM,CAExB;IACD,IAAI,OAAO,IAAI,MAAM,EAAE,CAEtB;IACD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,SAAS,CAAC,GAAG,EAAE,OAAO,EAEzB;IAED,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,KAAK,CAAC,GAAG,EAAE,MAAM,EAEpB;IAED,MAAM,IAAI,OAAO;CAgFlB"}
@@ -0,0 +1,2 @@
1
+ export declare function jsform(attributes: Record<string, any>, ...children: any[]): HTMLFormElement;
2
+ //# sourceMappingURL=VanJsfForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VanJsfForm.d.ts","sourceRoot":"","sources":["../lib/VanJsfForm.ts"],"names":[],"mappings":"AAmGA,wBAAgB,MAAM,CACpB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,GAAG,QAAQ,EAAE,GAAG,EAAE,GACjB,eAAe,CA2BjB"}
@@ -0,0 +1,3 @@
1
+ import { jsform } from "./VanJsfForm";
2
+ export { jsform };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,CAAC"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../lib/main.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vanjs-jsf",
3
3
  "description": "A JSON Schema Form UI Library for VanJS",
4
4
  "keywords": ["vanjs", "json", "schema", "form", "ui-library"],
5
- "version": "0.0.4",
5
+ "version": "0.0.5",
6
6
  "author": {
7
7
  "name": "Carlos Prados",
8
8
  "email": "carlos.prados@gmail.com"
@@ -17,7 +17,7 @@
17
17
  "scripts": {
18
18
  "dev": "vite",
19
19
  "test": "jest",
20
- "build": "tsc && vite build",
20
+ "build": "tsc && vite build && tsc",
21
21
  "tsc": "tsc",
22
22
  "preview": "vite preview"
23
23
  },